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.
@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.
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 Any updates on this? I've been facing this issue the entire day.
@admin
Please acknowledge that you are aware of this issue and working on it.
@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 Ok. Thanks for the clarification. Also please update your documentation for rate limits. The documentation still says 20 orders per second.
@admin The procedure to register the static IP address has changed from what you had posted on this forum earlier. Before you implemented "new login", I had already created an API key with my static IP address on the old login link. Now I'm not able to use that IP address since it's already in use. Even when I disable the old API key, I'm not able to use the IP address. Why have you created so much confusion? Can I continue using the old API key since it's already linked to the static IP? Please clarify.
This is a serious issue as the algo makes decision based on ltp data. This could lead to huge losses if not addressed immediately. The moderator/admin is completely absent and no acknowledgement at all.
@moderator Why is there no response from your end? No acknowledgement. Nothing.
The ltpData method is returning yesterday's ltp data at close.
Please fix this ASAP.
@admin Any updates on this? I've been facing this issue the entire day.
I am getting this constantly today. Usually, it occurs 2-3 times during the trading session, but today it's happening continuously.
HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/secure/angelbroking/order/v1/getLtpData (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f95e96f7e60>, 'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)'))
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.