Token List downLoad
-
@admin
python 3.8.3 -
smartapi-python
version
1.2.6 -
@admin
Login error{'status': False, 'message': 'Login Id or password is invalid', 'errorcode': 'AB1007', 'data': None}
-
Do I need to register for market feed??
Do I need to refresh api_key and password every day??
-
@Heena-Shah
Firstly, there's a possibility that you data hasn't been migrated. Communicate issue here, and the Angel team will let you know if you can access APIs with the account you are using. You only need to tell them the client code. I am not sure if they've completed migration.Secondly, try using the APIs instead of library Angel has provided. I had issues using the library, but, could use APIs smoothly.
You don't need sign up for SmartAPI to get market feed. It is free. It is just that you need to sign up. You don't need to refresh API key and password. However, you need to get a new jwttoken every day. It is with this token that you can use the APIs.
-
@shrikantshet
My account is new account created online not attached to any sub-brokers. Please check client code H104220Presently I am using Only Market feed app.
Order is still under development.
Do I still have to migrate my account?Once after migration , I can use web based desktop application
also at same time? -
Is my version of python & SmartAPI both ok??
-
Hi @Heena-Shah yes we need it also please go through the documentation https://smartapi.angelbroking.com/docs
-
@admin
My account is new account created online not attached to any sub-brokers.
Please check client code H104220 and migrate -
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
generateSession error{'status': False, 'message': 'Login Id or password is invalid', 'errorcode': 'AB1007', 'data': None}
-
Hi @Heena-Shah Reset your password and try again.
-
Getting same error after refreshing
-
Hi @Heena-Shah our team will connect you soon.
-
HI @Heena-Shah your query is resolved as discussed in the meet.
-
-
Hi @Heena-Shah There is no limit to pass tokens.
-
I getting data for one token
but when I pass all nse cash token it is not giving any data
Only tvalue is coming -
Please share the code that you are using to request the data.. its hard to diagnose without it.
-
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()