It looks like you're new here. If you want to get involved, click one of these buttons!
Node JS client
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Total Traded Volume of the Day
I'm getting the webSocket binary data, where it is having all the data. But I want only the Volume alone
edited May 13
Use for loop to iterate over the ticks and extract the volume from each tick.
sequence of Subscription to multiple tokens are not same. the order is varying for everytime ?
Yes, there is no fixed sequence and length of incoming ticks.
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None)
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None)
I'm getting this below error when I use time.sleep in def on_ticks(ws, ticks):
and the kws.connect is disconnected ?
what should I do next?
could you please help me with this ?
edited May 13
One shouldn't block the main streaming thread by doing any operation inside on_ticks.
The solution is here:
You can understand the reason for this here:
Thank you the above support. yesterday I'm able to receive data through python web socket. But today Saturday I'm getting this error.
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden))
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden))
time.sleep is not working in
. its is executing the output for many times
suspends the thread, you can try using
i'm getting error. My moto is every 5 minutes once, I want the uptaded ticks once for all the 1500 token's ticks in a variable and need to process that variable. Is it possible. ?
can you pls help me with it , how to do that ?
edited May 16
You want only one tick every 5 minutes??
Market quotes are the perfect way for snapshot data .
M_MFIN, L_TFH, M_M, J_KBANK for these stocks I am not able to get market data. as these stock's symbols have "_" underscore. can you
please support me on this ?
You can find the correct tradingsymbol from the instruments dump .
There are no underscores in the tradingsymbol of these stocks. There are ampersands in the tradingsymbol of these stocks.
Look at this
Im getting no data for those stocks. is there any error on this ?
edited May 18
You are sending the parameters directly in the url.
These stocks have '&' in their symbols . & is used to separate the arguments in a url.
So, let's say you fetch quote for M&M,but the server thinks you are requesting quote for a stock called 'M'. Thus,no data.
You have to use '%26' in place of '&' in the tradingsymbols.
Or,send symbols in the params value in the get function. The requests library will automatically convert '&' to '%26' for you.
Thank you it is working.
This discussion has been closed.