@laxm I replaced my code with below to get ltp from Yahoo FInance.
BN_data1 = yf.download(tickers='^NSEBANK', period='1m',progress=False)
BN_ltp = BN_data1["Close"][-1]
Posts made by smitshahfo
-
RE: unable to fetch getltp of INDEX (Banknifty & Nifty)posted in General Discussion
-
unable to fetch getltp of INDEX (Banknifty & Nifty)posted in General Discussion
@admin unable to fetch getltp of INDEX (Banknifty & Nifty)

-
RE: Not receiving get_ltp data..posted in General Discussion
@Vignesha yes it got fixed in 15-20 mins after my post.
-
Not receiving get_ltp data..posted in General Discussion
Hi Admin,
Not receiving get_ltp data from 12:22 pm. Please rectify asap.
Thanks
-
RE: Binary data from websocket 2.0posted in General Discussion
@TB_Developer
check.. Websocket 2.0 Documentation https://drive.google.com/drive/u/1/folders/1GMwTMfxRdiloUziV4DYwlYchGXbOvTfL -
RE: User Feedback - WebSocket 2.0 Beta Rollout – Python Languageposted in Python SDK
@Ashok I am printing data only for 1 min.
Today.. Am getting data.
-
RE: User Feedback - WebSocket 2.0 Beta Rollout – Python Languageposted in Python SDK
@Ashok ok Thank you.
Sometimes its printing the same message. multiple times. does it mean no response from server.
-
RE: User Feedback - WebSocket 2.0 Beta Rollout – Python Languageposted in Python SDK
Hi @admin,
I am running websocket V2.0. for every 30 sec's its landing in pong function. I have subscribed only one token while running the below.its consistent even with other token. Please look into this.

-
RE: Data format issue with websocket V2 versionposted in Python SDK
@laskshmi
its available here.
Websocket 2.0 Documentation https://drive.google.com/drive/u/1/folders/1GMwTMfxRdiloUziV4DYwlYchGXbOvTfL -
RE: Data format issue with websocket V2 versionposted in Python SDK
@Ashok
Thank you Ashok.
Could get the formats right. -
RE: Websocket 2.0posted in Python SDK
@Karthikeyan
@rajanprabu
@ashokkmr22Thank you for the fix,
Can you please help me to get time stamp in datetime format.
'exchange_timestamp': 1668667371000.
Also prices (OHLC) into their required formats.Thanks in advance.
-
Data format issue with websocket V2 versionposted in Python SDK
@admin
This is the data am receiving from websocket V2, after including the change suggested by @rajanprabu.The data seems to be not in proper format. "exchange_timestamp": 1668665016000. How should i decode it..
and the prices of tickers are not showing the decimal values. its showing as integer value.. including decimal points.Please fix the issues ASAP.

-
RE: Error AG8001posted in General Discussion
@stevejmotha
Hi, I had to change my password through website. Then with new password I was able to login.. Please try and see if it works. -
Error AG8001posted in General Discussion
Dear Admin,
@admin
I am getting following error message. my client id: RMKK1008
{'success': False,
'message': 'Invalid Token',
'errorCode': 'AG8001',
'data': ''}Please resolve it ASAP.
-
RE: Error AG8001posted in General Discussion
Dear Admin,
I am getting following error message. my client id: RMKK1008
{'success': False,
'message': 'Invalid Token',
'errorCode': 'AG8001',
'data': ''}Please resolve it ASAP.
-
Token for India Vixposted in General Discussion
Dear admin/Fellow Developers,
Can you please help me with India Vix {Token} & {Symbol}.
Thank u
-
RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"posted in General Discussion
@admin Still getting same error. I have reset my password and able to login in web browser but unable to login from python api...
payload = "{\n"clientcode":"RMKK1008",\n"password":"xxxxxx"\n}"
xxxx - is my password.
is this the only change i need to do in the login code ?.
-
RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"posted in General Discussion
@admin my client id is RMKK1008
Please do the needful to allow access to SmartAPI.
Thank u.
