Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Websocket and kite.ltp in API #193

Open
dolaram opened this issue Apr 12, 2024 · 1 comment
Open

Issue Websocket and kite.ltp in API #193

dolaram opened this issue Apr 12, 2024 · 1 comment

Comments

@dolaram
Copy link

dolaram commented Apr 12, 2024

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.

@pseudoag
Copy link

pseudoag commented Apr 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants