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.
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.
Also, are kiteconnect sdk logs stored somewhere on our local?
[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
You can use this as a mock tick packet.
Also, what is the frequency that the ticks are generated? Is it every second?
You can refer to the FAQs here.