I have been trying to collect data of Reliance from Jan 1st 2022 to date. Since the maximum days per request allowed is 30 days for one minute interval data I have been collecting data for every 30 days using while loop. But the first day of few loops has an issue. The data is missing for half day. Could you please help me with this?
shreyas2290
@shreyas2290
Best posts made by shreyas2290
Latest posts made by shreyas2290
-
Historical Data API
-
Historical data open and close
I downloaded historical data for Reliance for approximately 2.5 years for Reliance today in two timeframes, one minute timeframe and one day time frame. I noticed that the opening price of 9:15 minute in one minute timeframe data and opening price of the day in one day time frame data was not the same. Similarly, the closing price of 15:29 minute in one minute time frame data and closing price of the day in one day time frame data was not the same.
Please let me know the reason. Should'nt they be same?
-
RE: Smart API Login issue
Following is the code. I have entered IP address, public IP address, mac address, client id, pin, API key and totp correctly. Still I am getting error. The following code is from API Documentation. I have pasted the error in the end.
import http.client
import mimetypes
conn = http.client.HTTPSConnection(
"apiconnect.angelbroking.com"
)
payload = "{\n"clientcode":"CLIENT_ID"
,\n"password":"CLIENT_PIN"\n
,\n"totp":"TOTP_CODE"\n}"
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-UserType': 'USER',
'X-SourceID': 'WEB',
'X-ClientLocalIP': 'CLIENT_LOCAL_IP',
'X-ClientPublicIP': 'CLIENT_PUBLIC_IP',
'X-MACAddress': 'MAC_ADDRESS',
'X-PrivateKey': 'API_KEY'
}
conn.request(
"POST", "/rest/auth/angelbroking/user/v1/loginByPassword", payload, headers)res = conn.getresponse()
data = res.read()
print(data.decode("utf-8")){"status":false,"message":"Invalid totp","errorcode":"AB1050","data":null}
-
Smart API Login issue
I have written a code to login. I am getting status code as 200. However, I am not getting the response in the format mentioned in the documentation.