Live market feed
-
@mihirk So what are we suppose to do after we get this tick response, how do we get the actual market feed, are we suppose to wait and market feed response gonna come eventually after the tick responise?
-
@taleevaalam1 I am using NodeJS for live feed through web socket and it is working fine. Two stock ticks you posted occurs everytime on first connection (these are just acknowledgement of successful connection) and after that we get actual market feed. So basically, market feed will come after these two ticks.
-
This post is deleted! -
@taleevaalam1 hi, can you please share a snipe of python code you are using for streaming the tick data , as i'm trying but i'm not able to get the above format data, whereas @bhaveshjain had messaged me in one of the post that there is some issue with python websocket streaming service, they are trying to fix that,
-
@bhaveshjain I was able to successfully get the web socket response for script
script: "nse_cm|2885
feed_token - I am using what i have got as a response from generate session
but the response is something like this
Receive stock ticks:: [ { ak: 'nk', task: 'cn', msg: 'cn' } ] Receive stock ticks:: [ { ak: 'nk', task: 'mw', msg: 'mw' } ]
I can not make much sense out of this data
Can you please tell me what i might be doing wrong
p.s : I ran the code on Working days only
-
Okay I got it. I need to call generateToken method after the generateSession method
-
@vishant Python
-
Hi @rjbanna,
Can you specify, which SDK you are using? (Node / Python /Java)
-
@bhaveshjain I'm able to login to the system using the smartapi but there is no feedToken in the response, only refreshToken and jwtToken is there. I checked the code on the Github and found that the API call is not returning the feedToken and without that we won't be able to get the live market feed. So please add the feedToken in the response. Thanks.
-
@Vikrant_Tikas You can establish a WebSocket connection to steam live feeds. End point information is covered in our documentation. Please refer - smartapi.angelbroking.com/docs/WebSocket