It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Unable to get historical data using python API
I am using this code and while running this i am getting error as def historical_data
See this video :
i Tried it as shown in image 1 but it showed some errors like in image 2
WhatsApp Image 2020-05-17 at 1.36.19 PM (1).jpeg
WhatsApp Image 2020-05-17 at 1.36.19 PM.jpeg
There are two errors in the above code:
1> You have assigned instrument tokens value to token named variable but instead passing instrument tokens in historical data APIs. You need to pass same variable which has instrument token.
2> You can only fetch historical data for one instrument in a single request. So, you need to loop in through tokens list with required delay to avoid exceeding