Skip to main content
All CollectionsAPI and Indicators
Can I get a timestamp with my indicator result?
Can I get a timestamp with my indicator result?

How to get a timestamp with every result, so that you know which time your indicator value corresponds to

Updated this week

Yes, you can use the optional parameter addResultTimestamp=true and the API will return a timestamp together with your indicator value.

For example, if you make a call like this

https://api.taapi.io/rsi?symbol=BTC%2FUSDT&interval=1h&exchange=binance&addResultTimestamp=true

You'll get a response with a value and the corresponding timestamp:

{
"value": 58.62347623165166,
"timestamp": 1732021200
}

This can be extra helpful when requesting historical data. When you request a value from, let's say, 15 candles ago using the backtrack=15 parameter:

https://api.taapi.io/rsi?symbol=BTC%2FUSDT&interval=1h&exchange=binance&backtrack=15&addResultTimestamp=true

The returned timestamp will make it easier for you to know which minute, hour and day the value corresponds to.

You can also add the timestamps to historical values you get using the powerful "results" parameter. Let's say you want to know the RSI value for each hour over the past 10 hours. You can do that easily with a single API call like this:

https://api.taapi.io/rsi?symbol=BTC%2FUSDT&interval=1h&exchange=binance&results=10&addResultTimestamp=true

And in the API response you'll get a timestamp corresponding to each and every one of the results:

Did this answer your question?