Hi @rakeshr i went through the FAQ, there was a thread regarding the error i faced, you mentioned that the access token i used was invalid but as mentioned above by
@sujith ' If it is not disconnected then next day, Websocket won't close existing …
Connection closed: 1006 - connection was closed uncleanly > Websocket Connection Upgrade Failed 403 - Forbidden
It was giving this error again and again today
I had started a websocket connection yesterday and i didn't closed it. But this morning it was giving me this error
Connection closed: 1006 - connection was closed uncleanly >
@sujith
Hi @rakeshr i know that we can use the same access token for that day. But for the next day we are in the on_ticks function of the websocket where ticks are streamed. And i have to update access token how can i do that.
def run(self):
…
Thank You @SRIJAN for your insight. I found this article regarding the calculation of IV. Can you tell me how to get the spot price of indices(Nifty 50) using 'kite.ltp()' or anything else.
https://kevinpmooney.blogspot.com/2017/07/calculating-im…
Also i was facing another error today.
I logged into the API using
'kite = KiteConnect(api_k)
kite.set_access_token(access_token)'
and i was trying to place order using
'order_id = kite.place_order('REGULAR','NSE','SBIN','SELL',1,'MIS','LIMIT',pri…
@sujith , @rakeshr
I used the functions you told : " kite.margins('equity') "
It returns funds in my account for equity.
Still didn't got fund required for 1 lot of equity future for a instrument.