Not receiving ticks after the initial tick

blackCaesaris
blackCaesaris edited October 2023 in Python client
Hey Team,

I am a bit new to using the Zerodha API, so this is more of a "guide me" doubt. I have created a WebSocket connection. It receives the first tick and then stops receiving any ticks. (No, there are no blocking tasks on the on_tick callback override).

Wanted to understand whether there are any effective ways that you guys use to determine if the WebSocket connection is indeed receiving traffic from the Zerodha server.

That will help me narrow down if the issue is from my end.

PS: Using websocat on the websocket url also shows blank data incoming.
  • blackCaesaris
    blackCaesaris edited October 2023
    Got a couple of ticks now with a 3-minute time difference. Is the Server side working properly?

    Also, are kiteconnect sdk logs stored somewhere on our local?
  • blackCaesaris
    Result of websocat. I see that only 1 byte of data is being received.

    [DEBUG websocat::sessionserve] Underlying connection established
    [INFO websocat::ws_client_peer] get_ws_client_peer
    [INFO websocat::ws_client_peer] Connected to ws
    [DEBUG websocat::ws_peer] incoming text
    [DEBUG websocat::readdebt] Fulfilling the debt of 85 bytes
    {"type": "instruments_meta", "data": {"count": 90517, "etag": """}}
    [DEBUG websocat::ws_peer] incoming binary
    [DEBUG websocat::readdebt] Fulfilling the debt of 1 bytes

    [DEBUG websocat::ws_peer] incoming binary
    [DEBUG websocat::readdebt] Fulfilling the debt of 1 bytes

    [DEBUG websocat::ws_peer] incoming binary
    [DEBUG websocat::readdebt] Fulfilling the debt of 1 bytes

    [DEBUG websocat::ws_peer] incoming binary
    [DEBUG websocat::readdebt] Fulfilling the debt of 1 bytes
  • blackCaesaris
    Ah, this is probably because it's a non-trading window. I was hoping the API would return dummy values, or some other exception showing the same. It would be great if the team could confirm.
  • blackCaesaris
    Works on market open.
  • rakeshr
    I see that only 1 byte of data is being received.
    This is a successful websocket connection ping.
    I was hoping the API would return dummy values, or some other exception showing the same. It would be great if the team could confirm.
    No, currently we stream whatever exchange stream to us.
    You can use this as a mock tick packet.
  • blackCaesaris
    blackCaesaris edited November 2023
    @rakeshr thanks for that

    Also, what is the frequency that the ticks are generated? Is it every second?
  • sujith
    @blackCaesaris,
    You can refer to the FAQs here.
Sign In or Register to comment.