-
Notifications
You must be signed in to change notification settings - Fork 545
Open
Description
WebSocket and kite.ltp apis are very unreliable in the morning trading session, WebSocket/ltp api are not giving the ltp for subscribed scripts in the morning till 10AM leading the code flow to break. Same piece of code for fetching ltp working good after 10AM.
We are facing this issue for last 2 weeks.
Below is the error coming when fetching the ltp for first time after 5min of ltp subscription in WebSocket as WebSocket is not proving the ltp code flow is then fetching ltp from ltp api which is also giving below error:
ERROR:
ltp = self.kite.ltp('NSE:NIFTY MID SELECT')['NSE:NIFTY MID SELECT']['last_price']
AttributeError: 'NoneType' object has no attribute 'ltp'
Please have a look into the issue.
Metadata
Metadata
Assignees
Labels
No labels