1. Is it possible to fetch historical data of multiple symbols in one shot vis Rest APIs ?

I am using the following API to consume historical data
https://api-t1.fyers.in/data/history?symbol=NSE:SBIN-EQ&resolution=30&date_format=1&range_from=2023-09-01&range_to=2023-09-02&cont_flag=’

This approach via query parameter allows to fetch only 1 symbol at a time.

i want to fetch data of multiple symbols in one shot (due to limitation of 10000 request per day ) so that the no of requests can be reduced.

Hi @prabhji_singh ,

Currently we don’t provide multiple symbol in history.
You can use one loop to put multiple request in case you are fetching history data.

And you want real time data and also fetching using history API, then this is approach is wrong. You can use web socket for it. Please read API v3 docs for more information.
Thank you

In cases where we have to do pre-market analysis on multiple symbols, fetching historical data in bulk is of immense help because not only does it save time but compute resources as well. @Z4PBvkQGyF

I hope this can be prioritised sometime. Happy to hop on a call to explain the use case.

hi @granddervish
Currently we are not supporting this.

If you want only current day data then you can use websocket.

Are you using excel or python to fetch data
If you are using python I can’t help but if you are using Excel I can help you to solve your problem

I use my own Java Spring Boot Application and integrated with Fyers via Rest API.

@Z4PBvkQGyF Do you have a Fyers SDK for Java that supports Pulling Data via Websocket ?

No @prabhji_singh

Currently we are not supporting Java SDK
Our supported SDKs include Python and Node.js.

@Z4PBvkQGyF if you could bring the multiple symbols option that would be great.

i am just another user and i used to think the same but maintaining integrity for large requests is problematic especially when drops/downtime keep occurring due to various faults in the whole chain.

It is better to loop through multiple requests, also you can fire up multiple thread upto per second limit to fetch data concurrently.

While it looked easy initially with one request, after using for quite sometime i’d rather have it this way. Large downloads took that much longer so i didnt see huge gain in speed. If a request was partial, working back to refetch symbols is more complex code or restart fetching all symbols from square 1 again.

something else i noticed is some are using historical fetch like RTD and hitting same API repeatedly instead of accumulating data at client end. In that case they run out of api requests, instead of switching to RTD with quote API or websocket. BOTH Quote and WS support multiple symbols.

Yes agree with @chirag Point.

Client must be store the data which they fetched once. Even I also saw a lot of client is fetching same data and again per day.