How can we get historical data for all the listed stocks at one go through fyers api , Under below code we can only get for individual symbol,If someone has a python code for that kindly share it
Hi Sajesh,
for history API we can get historic data for only one stock at a time. You need to hit it multiple times for different stocks.
Sure ,Thankyou Vikram.
@ Vikram ji, I am pulling out historical data by below query but not getting date.
data = {“symbol”:“NSE:PIIND-EQ”,“resolution”:“D”,“date_format”:“1”,“range_from”:“2022-02-01”,“range_to”:“2022-03-28”,“cont_flag”:“1”}
datetime is not coming for each day. Instead of datatime time epoch value is coming in data.
1 epoch value open high low close volume.
Can you please share how to change it.
- Also how can i explore fyers library functions list. please suggest.
It would be nice for Fyers Team to expose an endpoint similar to the current one where the symbol would be an array for symbols for which data is desired each having the same from and to range. That would make it a single call.
where can i find all the stock codes you use to get the data? do they come from nse websites ?
and when historical data is epoch can i get data for 1 ,2 hour , or i have to have whole day data only?
if my from and to have time difference of 3600 sec , will it give me historical data of 1 hour?