Skip to content

Issue Websocket and kite.ltp in API #193

@dolaram

Description

@dolaram

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions