The typical API request looks like this:

For most cases this is a great option, however, for some occasions, it might be more efficient to request multiple symbols, multiple endpoints, or several technical indicators at once. There are two main approaches to achieve these.

Batch request

This type of request works best when multiple symbols have to be requested from the same endpoint. The advantages include a faster response (rather than individually), saved traffic, and easier error handling. Each symbol has to be separated by a comma and a colon might be used if the exchange has to be specified.,SBIN:NSE,EUR/USD&interval=1day&apikey=

This method could be used with /time_series, /quote, /price, /exchange_rate, /currency_conversion, and /eod endpoints. Take note, that each symbol passed counts as 1 API call. So, in the above example, the cost of the request is 3 API calls!

Complex request

This is a big brother of batch requests that allows to construct and get data from API with any complexity. The data might be only received via a POST request, which in turn provides flexibility to call multiple symbols, intervals, and endpoints at the same time. More details, parameters, and examples can be encountered in the docs.

Important. Each symbol, or endpoint passed is counted as 1 API call.

Did this answer your question?