Livefeed using sockets
-
@bhaveshjain Sure, I'll check it and let you know soon.
-
@bhaveshjain I checked the websocket API and it is working as expected. There is one typo in the README.md file on Github. In the code feedToken=obj.getFeedToken(), the function name is misspelt. In the smartConnect.py file, the function name is getfeedToken(). with the "feed" in lowercase where as in the example it is "Feed" with first letter capital. So kindly resolve that issue or else people will receive the following error "'SmartConnect object has no attribute 'getFeedToken'". Thanks
-
@bhaveshjain Can you please elaborate following terms that I receive as a response from socket? They are to, lo, sp, c(if this is close, then which close is it referring to?), tk, bs, bp, cng, bq, ap, nc, name, tbq.
-
Hi @rjbanna,
Request you to raise this same query as a general discussion. So that other people will also be informed about this.
-
@vishant I have created the new thread for the same.
-
Hi @admin @bhaveshjain I am using latest SMARTAPI-PYTHON and getting the below output only for token="nse_cm|3045". I have tried few more ticks as well but still getting the same output.
Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}]
Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}]
Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}]
Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}]
Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}]
Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}]Please let me know how can I get data.
-
Hi @dushyant , I suppose you're passing wrong feedToken. Please review.
-
I am facing the exact issue faced by @dushyant . Even I used the same token: 3045 which is the token for SBIN-EQ.
{"token":"3045","symbol":"SBIN-EQ","name":"SBIN","expiry":"","strike":"-1.000000","lotsize":"1","instrumenttype":"","exch_seg":"NSE","tick_size":"5.000000"}
The data is from the instruments API. which means the instrument data is wrong?
BR
Dheepi -
Hi @dheepi , please share your contact details on api@angelbroking.com
-
@admin Thanks for your help. The issue is solved.
-
@admin
Getting same error
Co No:- 8000662244
mail:- mangroliyadj6293@gmail.com
Client id : D108750 -
@Ashok what was wrong ??
-
@rajanprabu are you asking about the error faced in Dec ? That is due to wrong formatting of the input text to the WS Script
-
What does the response key:values mean?
Would be helpful if someone can explain what does the below values like tm,tvalue,ak,msg,etc mean, where can i find the documentation for these?Ticks: [{'name': 'tm', 'tvalue': '25/02/2021 23:31:21'}
Ticks: [{'ak': 'ok', 'msg': 'connected', 'task': 'cn'}] -
-
Thanks @Ashok
-
@rjbanna did you get solution on this
-
@vishant as I can see you have implemented using js please can you share your code?