Shoonya-Dev / ShoonyaApi-py

139 stars 130 forks source link

websocket market feed missing order quantities in market depth #25

Closed shajeeck closed 1 year ago

shajeeck commented 2 years ago

websocket market feed missing all order quantities in market depth so1, bo1 etc

TheCodeArtist commented 2 years ago

order quantities in market depth so1, bo1

In the shoonya websocket feed, order quantities are available as sq1, bq1 etc. right?

alexfarseer commented 2 years ago

Pass NorenApi.FeedType.SNAPQUOTE to api.subscribe like this: api.subscribe("NSE|3456", feed_type=NorenApi.FeedType.SNAPQUOTE). You will get depth feed of 5 levels.

Shoonya-Dev commented 2 years ago

Greetings from FINVASIA!

Thanks for your Concern

@shajeeck Hope Your Query has been Resolved.

rushey17 commented 1 year ago

How to handle this error? I am trying to connect web socket.

DEBUG:NorenRestApiPy.NorenApi:connecting to wss://shoonyatrade.finvasia.com/NorenWSTP/ WARNING:NorenRestApiPy.NorenApi:websocket run forever ended in exception, run_forever() got an unexpected keyword argument 'ping_payload' WARNING:NorenRestApiPy.NorenApi:websocket run forever ended in exception, run_forever() got an unexpected keyword argument 'ping_payload' WARNING:NorenRestApiPy.NorenApi:websocket run forever ended in exception, run_forever() got an unexpected keyword argument 'ping_payload' WARNING:NorenRestApiPy.NorenApi:websocket run forever ended in exception, run_forever() got an unexpected keyword argument 'ping_payload' WARNING:NorenRestApiPy.NorenApi:websocket run forever ended in exception, run_forever() got an unexpected keyword argument 'ping_payload' WARNING:NorenRestApiPy.NorenApi:websocket run forever ended in exception, run_forever() got an unexpected keyword argument 'ping_payload' WARNING:NorenRestApiPy.NorenApi:websocket run forever ended in exception, run_forever() got an unexpected keyword argument 'ping_payload'

Shoonya-Dev commented 1 year ago

Greetings from FINVASIA!

Thanks for your Concern.

Solution :- by updating the python package pip update websocket_client