paramatrixtech / ksapi

Kotak Securities Trading APIs Integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Subscription to websocket seems to be broken.

jayaprakashv2005 opened this issue · comments

i followed the example, but I am getting AttributeError: 'KSTradeApi' object has no attribute 'subscribe'
pls help!

I was also getting same error, when I updated the API using the link given on the documentation, it worked for me.

Admins, pls let us know any alternative way to get ltps of multiple instruments in a single go.

@jayaprakashv2005
for websocket, please update to the latest version of the repository and let me know if the issue persists.
for quotes. you can pass multiple instrument tokens by passing them as a string separated by a hyphen.
for example, if you want quotes for token 727 and 1250 you will write:
client.quote(instrument_token="727-1250")