Token List downLoad
-
How can I get dump of all tokens in python variable??
Is all tokens can be added is websocket?? -
@Heena-Shah said in Token List downLoad:
Not accepting more than 500 tokens
I have tried with all FNO stocks ( ~160).. I had no issues with that..
-
Not accepting more than 500 tokens
-
are you receiving data for all tokens now ?
-
I'm facing the websocket disconnection issue after 10 minutes for Python SDK
-
You may have to upgrade to recent SDK where they done away with multi processing
-
f = open("D:\Stockvision\nseToken.txt", "r")
token=f.read()
task="mw"obj=SmartConnect(api_key=api_key)
login = obj.generateSession(client_code,your_password)
refreshToken= login['data']['refreshToken']
feedToken=obj.getfeedToken()userProfile= obj.getProfile(refreshToken)
ss = WebSocket(feedToken,client_code)def on_tick(ws, tick):
print("Ticks: {}".format(tick))def on_connect(ws, response):
ws.websocket_connection()
ws.send_request(token,task)def on_close(ws, code, reason):
ws.stop()Assign the callbacks.
ss.on_ticks = on_tick
ss.on_connect = on_connect
ss.on_close = on_closep1 = multiprocessing.Process(target = ss.connect())
sys.exit()
p1.start() -
Please share the code that you are using to request the data.. its hard to diagnose without it.
-
I getting data for one token
but when I pass all nse cash token it is not giving any data
Only tvalue is coming -
Hi @Heena-Shah There is no limit to pass tokens.
-
-
HI @Heena-Shah your query is resolved as discussed in the meet.
-
Hi @Heena-Shah our team will connect you soon.
-
Getting same error after refreshing
-
Hi @Heena-Shah Reset your password and try again.
-
@admin
generateSession error{'status': False, 'message': 'Login Id or password is invalid', 'errorcode': 'AB1007', 'data': None}
-
hi @Heena-Shah said in Token List downLoad:
My account is new account created online not attached to any sub-brokers.
Please check client code H104220 and migrateyour account is migrated.
-
@admin
My account is new account created online not attached to any sub-brokers.
Please check client code H104220 and migrate -
Hi @Heena-Shah yes we need it also please go through the documentation https://smartapi.angelbroking.com/docs
-
Is my version of python & SmartAPI both ok??