Tick values are refreshing very slowly in websocket streaming.
-
@admin I want to get spot Nifty and Not Futures.
-
@admin token = 'nifty'
task='sfi'
WS = SmartWebSocket(feedToken, CLIENT_ID)def on_tick(ws, tick):
print("Ticks: {}".format(tick))def on_open(ws):
#print("on Open")
ws.subscribe(task,token)def on_connect(ws, response):
ws.send_request(token)def on_close(ws, code, reason):
ws.stop()Assign the callbacks.
WS.on_ticks = on_tick
WS.on_connect = on_connect
WS.on_open = on_open
WS.on_close = on_closeWS.connect( )
print(WS)please check and make the neccesary update in above Code=>
-
HI @webseos To Get live feed from websocket you need to pass task as "sfi" and pass nifty as token
-
@princetech1 for the live feed python code watch link text
-
HI @webseos Please go through the instrument dump file.
https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json -
@admin What will be the code or JSON request format to get BankNifty Spot/ Nifty Spot/ Finnifty Spot
-
HI @princetech1 you can get it though websocket or ltp API.
-
@admin please provide me nifty Spot Live feed Python Code.
-
Hello, Do you getting Live Nifty Spot Via Python Code.If So
please mail @ princetech1@gmail.com. -
Hi @leena-1234 said in Tick values are refreshing very slowly in websocket streaming.:
It is observed that, there is a delay in tick values update and LTP is not getting reflected fastly so it's value is differing from the actual price on Angel Broking web console
We have noted this we will update you.