Hi,
In the Python SDK, when I qury for current LTP, I'm getting wrong data. The bank nifty ltp I'm getting is 43851.05 from 9:15AM 21st Aug 2023.
Hi,
In the Python SDK, when I qury for current LTP, I'm getting wrong data. The bank nifty ltp I'm getting is 43851.05 from 9:15AM 21st Aug 2023.
Getting the error
File "/anaconda3/lib/python3.9/site-packages/SmartApi/smartConnect.py", line 224, in generateSession
if loginResultObject['status']==True:
KeyError: 'status'
when I try to login using the Python SDK.
@admin
Any response? Why is the ltp not updating. I've stopped the code and restarted a few time, but still getting the same wrong quote.
It's been almost 3 hours since this issue started occurring. Half of the trading session is over. Please provide an update on:
@admin
We are all waiting for a response. At least acknowledge that the issue is present.
@admin
I'm getting connection timeout errors from 13:11 19th Oct 2023.
'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)'
Please check.
@sa No. Multiple issues with both the API and the website. I'm able to login through both now, but I'm facing issues with every other API call.
@admin
Please acknowledge that you are aware of this issue and working on it.
Any response Admin? I noticed that the DISCONNECT flag is set to true in the close_connection() method, but in the connect() method it is set to run_forever without ever checking the DISCONNECT flag.
This is for the Python SDK.
When I try to close the connection using the line sws.close_connection(), I always get
[W 240823 15:00:24 smartWebSocketV2:319] Attempting to resubscribe/reconnect (Attempt 1)...
followed by
[W 240823 15:00:34 smartWebSocketV2:343] Connection closed due to max retry attempts reached. This happens when I forcefully terminate the thread using the ctypes library.
If I don't forcefully terminate the thread, it just reconnects and subscribes to the feed.
Why is this happening Admin? I checked line 343 in the source file and it's in the _on_error method. Why is close_connection generating an error?
Also the sws.unsubscribe() method tries to resubscribe immediately as the self.RESUBSCRIBE_FLAG is set to True. It should be set to False when we are trying to unsubscribe.
@admin
I'm getting connection timeout errors from 13:11 19th Oct 2023.
'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)'
Please check.
@admin
Please acknowledge that you are aware of this issue and working on it.
Getting the error
File "/anaconda3/lib/python3.9/site-packages/SmartApi/smartConnect.py", line 224, in generateSession
if loginResultObject['status']==True:
KeyError: 'status'
when I try to login using the Python SDK.
@admin
We are all waiting for a response. At least acknowledge that the issue is present.
@admin
Any response? Why is the ltp not updating. I've stopped the code and restarted a few time, but still getting the same wrong quote.
Hi,
In the Python SDK, when I qury for current LTP, I'm getting wrong data. The bank nifty ltp I'm getting is 43851.05 from 9:15AM 21st Aug 2023.
@pari said in obj.ltpData() not returning data.:
obj.ltpData() stopped working on 30th May 2023 from 15:15 and was not working till the market closed at 15:30.
Checking my error logs, here is the actual trace.
HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)
@Admin Please look into this.