Unable to get live feed.
-
@Mnagesh - Below is the code form websocket vs 2
my question is from where do we get AUTH_TOKEN. I tried adding "Secret-Key" from "Apps & API" section (i.e. this link -> https://smartapi.angelbroking.com/apps) but I get below feeds from websocket.
Code
from SmartApi.smartWebSocketV2 import SmartWebSocketV2AUTH_TOKEN = 'Bearer eyJhbGciOiJIUzU-w'
API_KEY = 'qwert'
CLIENT_CODE = 'X123456'
FEED_TOKEN = '00998877'correlation_id = "nishant_123_qwerty"
action = 1
mode = 3Websocket feed:
In on pong function==> b'\x00' -
@Sukhwant280 can you elaborate your Q? with part of code or function and its error or output
-
@admin - is AUTH_TOKEN same as Secret-Key ?
-
@admin - found answers to my question on documentation here https://drive.google.com/drive/u/0/folders/1GMwTMfxRdiloUziV4DYwlYchGXbOvTfL
follow up question : for AUTH_TOKEN, its mentioned (jwt auth token received from Login API). How do we generate auth token login api?
-
@admin I am not clear what needs to be entered in AUTH_TOKEN and correlation_id. Couldnt find anything on the documentation as well.
Please help
-
Code isn't finished?
-
@admin Please explain about two fields AUTH_TOKEN and correlation_id. How to get values for these two fields?
-
-
@nehak During market hours, live data is coming.
-