When I tried next day it started working fine. Not sure what the issue was. Anyways if admin can enlighten us with some insights that than would be great.
Posts made by Sady27
-
RE: SmartApi historic data returning none today
-
SmartApi historic data returning none today
Is there any issue in SmartApi historic data today ?
try:
historicParam={
"exchange": "NSE",
"symboltoken": "3045",
"interval": "ONE_MINUTE",
"fromdate": "2021-02-08 09:00",
"todate": "2021-02-08 09:16"
}
smartApi.getCandleData(historicParam)
except Exception as e:
print("Historic Api failed: {}".format(e.message))It is returning none in. please see the snapshot. I checked for other tokens as well and this is happening for others as well
-
RE: Error while getting historical data
Thanks. It works. at any point of time if within seconds I requested for more than 3 packets then it throws an error hence putting the sleep works .
-
RE: Getting error in websocketV2
in the connect() function of smartWebSocketV2.py replace the line with below definition and it fix the issue. The highglighted in bold is the changes I did in code to make it work
line having issue:
self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL,
ping_payload=self.HEART_BEAT_MESSAGE)replace it with below corrected code:
self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL) -
Nifty 50 and BankNifty Token
I want to load data for nifty 50 and banknifty indexes and I am using below token for nifty 50 which is not returning any historical data. Let me know if my approach is incorrect. token number I am using to load nifty 50 is 99926000
fbb2f0abcd3e-image.png) token symbol name expiry strike lotsize instrumenttype exch_seg tick_size
99926000 Nifty 50 NIFTY 0 1 AMXIDX NSE 0 -
Error while getting historical data
Error while fetching historical candle data for 2 days for 200 stocks in 5 mins time frame. Please help
DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'