Skip to main content
All CollectionsAPI and Indicators
Can we get just the price information from the API? Updated in real-time?
Can we get just the price information from the API? Updated in real-time?

How to get a real-time price of an asset

Updated over a month ago

Yes! Use our price indicator to get the latest price of the symbol you are interested in. The value is updated with every new trade that happens on the exchange. That means that every time you call the API, you'll get a fresh price back.

Example API query:

https://api.taapi.io/price?secret=APIKEY&exchange=binance&symbol=BTC%2FUSDT&interval=1h

Reseponse (price endpoint):

{
"value": 93557.97
}


You can also use the candle indicator to get the price and other OHLCV values:

Example API query (candle endpoint):

https://api.taapi.io/candle?secret=APIKEY&exchange=binance&symbol=BTC%2FUSDT&interval=1h

Response (candle endpoint)

Here's an example response you'll get. The most recent price you are probably looking for is the "close" value:

{
"timestampHuman": "2024-11-27 00:00:00 (Wednesday) UTC",
"timestamp": 1732665600,
"open": 91965.86,
"high": 93878.79,
"low": 91780.9,
"close": 93582.43,
"volume": 4252.079302330493
}

You'll notice the values are updated every time you make the API request to reflect the real-time changes.

Did this answer your question?