Skip to main content
All CollectionsAPI and Indicators
Accessing historical data easily with the Results parameter
Accessing historical data easily with the Results parameter

Results parameter is the most efficient and easy way to access historical data in one efficient API call

Updated yesterday

We are thrilled to announce a powerful new feature on TAAPI.IO that will greatly enhance your experience and streamline your workflow. With the addition of our new optional parameter results=X, to your queries, you can now effortlessly retrieve historical indicator values alongside real-time data using just a single API request.

Get indicator values for every historical candle easily with TAAPI.IO results optional parameter.

Effortlessly Access Historical Indicator Values

Traditionally, retrieving historical indicator values required separate API requests, resulting in increased complexity and potentially higher costs. However, with the latest update to TAAPI.IO, all historical data needs can be fulfilled through a single API call. By appending the optional parameter results=X to your query, where β€œX” represents the number of candles you want to retrieve, you can effortlessly access historical indicator values up until the most recent candle.

Flexible Parameter Options

You have the freedom to choose the number of historical candles you wish to include in your query. For instance, by setting results=10, you will receive historical indicator values for the past 10 candles. Alternatively, you can maximize the historical data retrieval by using the results=max parameter, which provides values for all available historical candles.

Get Started Today

To take advantage of this exciting enhancement, simply integrate the optional parameter results=X into your API queries, where β€œX” represents the desired number of historical candles.

Example query returning the RSI of BTC/USDT for the past 10 days:

https://api.taapi.io/rsi?symbol=BTC%2FUSDT&interval=1d&exchange=binance&results=10&secret=APIKEY

How the results are returned:

Note: you can use the addResultTimestamp=true optional parameters to also output a timestamp for every result, so you can easily reference which value corresponds to which date+time.

Limitations

Users on the Basic plan can only query results up to 50 candles back. Pro users can query up to 300 candles back, while Expert users have the capability to go up to 2000 candles back on every timeframe. For example, on the daily timeframe for stocks, this means Expert users can access data going back up to 10 years in history.

Please note: if your active subscription plan does not allow you to get results as far back in the history as you are querying, you will receive an empty response.

Did this answer your question?