Same issue here too.
Access denied because of exceeding access rate
@admin @administrators Please take a look
Same issue here too.
Access denied because of exceeding access rate
@admin @administrators Please take a look
Historical API is not returning any data for today (FEB 14 2023). But values are returned for previous day as expected
If i change the date to Feb 13, then its working.
Please check this. Thank you !!!
Hi @admin,
Currently i am unable to get any response from server for Historical data API when using the below request to fetch Banknifty or Nifty index data.
{
"exchange": "NSE",
"symboltoken": "26009",
"interval": "ONE_MINUTE",
"fromdate": "2023-01-03 09:15",
"todate": "2023-01-03 09:30"
}
RESOPNSE:
{
"status": true,
"message": "SUCCESS",
"errorcode": "",
"data": null
}
I did see many post having the same question, but too old back in 2021. So Just wanted to confirm if we have the historical data for Indices.
Thank you
@asiam9
I started to try the JAVA SDK, i am able to successfully connect to angel one account. I Didnt try via postman after that.
@laskshmi said in Historical Data API not sending data for requested number of days:
@admin
Any update on this??
@admin any update, iTs been 10 days
@admin
In the API documentation, it says that Historical data of 30 days can be request in a single hit with ONE_MINUTE interval.
But in actual case, I am receiving a maximum of 500 candle stick data irrespective of the interval. i.e If i request data of Jan 2 9:15 to to Jan 17 09:15 with ONE_MINUTE, I dont receive the data for requested days, instead receiving exactly 500 arrays which is approximately from Jan 13(Driday) to Jan 17 (Tuesday). So instead of 30 days i receive 3 days candle stick data.
Request:
Start of Response:
End of Response:
Can you let me know why I am not able to get the data for requested days ?
Trying to connect to websocket and getting the below error on Nov 21 2023. It was working fine till 12:40 and getting the same "No Such Host" error there after.
2023-11-21 12:40:24.996 [reactor-http-nio-3] WARN r.netty.http.client.HttpClientConnect - [3c5c6782-54, L:/192.168.29.145:21902 - R:apiconnect.angelbroking.com/103.82.177.189:443] The connection observed an error
java.io.IOException: An existing connection was forcibly closed by the remote host
at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
2023-11-21 12:40:47.313 [WebSocketConnectReadThread-50] ERROR c.a.api.utils.WebSocketClientUtils - Websocket Exception:
java.net.UnknownHostException: No such host is known (smartapisocket.angelone.in)
at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
GetCandleData API
Hi,
I developed a logic during march of this year that would periodically hit the https://apiconnect.angelbroking.com/rest/secure/angelbroking/historical/v1/getCandleData API and it was working fine. I didn't work the project after that. When I tried to run the same now after several months with the below request.
{
"exchange": "NFO",
"symboltoken": "57919",
"interval": "ONE_MINUTE",
"fromdate": "2023-11-16 09:15",
"todate": "2023-11-16 09:15"
}
I get error response like below.
{
"message": "Internal Error",
"errorcode": "AB2001",
"status": false,
"data": null
}
But when I try
{
"exchange": "NFO",
"symboltoken": "57919",
"interval": "ONE_MINUTE",
"fromdate": "2023-11-16 09:15",
"todate": "2023-11-16 09:16"
}
I get proper response
{
"status": true,
"message": "SUCCESS",
"errorcode": "",
"data": [
[
"2023-11-16T09:15:00+05:30",
44390.85,
44390.85,
44276.6,
44300.0,
2626
],
[
"2023-11-16T09:16:00+05:30",
44300.0,
44301.7,
44275.0,
44283.3,
1679
]
]
}
my question is why does 09:15 to 09:15 doesn't work, but 09:15 to 09:16 works and even 09:16 to 09:16 works, why does the first one doesn't work. This is breaking my logic.
Same issue here too.
Access denied because of exceeding access rate
@admin @administrators Please take a look
Historical API is not returning any data for today (FEB 14 2023). But values are returned for previous day as expected
If i change the date to Feb 13, then its working.
Please check this. Thank you !!!
You are not supposed to use this URL in postman. https://smartapi.angelbroking.com/publisher-login?api_key=xxx. You can use this url directly from browser and the token will be sent in the redirect URL which u mentioned while creating an APP in smart API.
To get the jwtToken from postman use the below details
https://apiconnect.angelbroking.com/rest/auth/angelbroking/user/v1/loginByPassword
Method: POST
No Authorization
Headers:
Content-Length:<postman generated values>
Content-Type:<postman generated values>
Accept:application/json
X-ClientLocalIP:<ur client ip>
X-ClientPublicIP:<ur public ip>
X-MACAddress:<ur mac address>
X-PrivateKey:<Your API KEY>
X-UserType:USER
X-SourceID:WEB
Update your details ()in the header.
BODY:
{
"clientcode": "{{clientID}}",
"password": "{{clientPIN}}",
"totp": "483811"
}
Hope this helps!!
@falconTrader
Thanks for replying.
Unfortunately, the websocket streaming method doesn't provide the option to request data based on specific time frames, such as ONE_MINUTE or FIVE_MINUTE. To obtain OHLC data like what's available from the Historical API, manual collection and calculation of data from websocket streaming would be required. This can be a time-consuming process and may result in some delay, even if processing time is only in the range of milliseconds to seconds, It will have a huge impact during high volatility market days.
Also, I use Java and my bad i couldnt help you with ur python issue.
Hi @admin
I am currently trying to work on a logic that requires getting the candleData of ONE_MINUTE time-frame of Futures (NFO) in real time(i.e to get the 09:15, 09:16, 09:17 candleStick data as soon as the minute is completed). The response should have OHLC Volume data. I have two question
REQUEST FOR HISTORICAL API
{
"exchange": "NFO",
"symboltoken": "48756",
"interval": "ONE_MINUTE",
"fromdate": "2023-02-03 09:15",
"todate": "2023-02-03 09:15"
}
Here, my second question is, when i hit the historical API every one minute ie 09:15:00. 09:16:00 and 09:17:00 .... so on, I am not getting the latest candle data in the response, it takes atleast ~5 seconds after a minute is completed to get the latest candledata in historical api. i.e I get the desired result at 09:15:05, 09:16:04 and 09:17:05 etc.... So , is there any way to reduce this 5sec gap in fetching the desired result or is there any other API that i can use instead of historical data API to get the candlestick data of one minute timeframe without any delay.
@laskshmi said in Historical Data API not sending data for requested number of days:
@admin
Any update on this??
@admin any update, iTs been 10 days
Hi @admin,
Currently i am unable to get any response from server for Historical data API when using the below request to fetch Banknifty or Nifty index data.
{
"exchange": "NSE",
"symboltoken": "26009",
"interval": "ONE_MINUTE",
"fromdate": "2023-01-03 09:15",
"todate": "2023-01-03 09:30"
}
RESOPNSE:
{
"status": true,
"message": "SUCCESS",
"errorcode": "",
"data": null
}
I did see many post having the same question, but too old back in 2021. So Just wanted to confirm if we have the historical data for Indices.
Thank you