@Devang_b 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 rate limit.
See this video :
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 rate limit.