capabilities.work

Token Price And History

A 2-step recipe with Ankr. We can help you get access.

Recipe · 2 steps

Token Price And History

with Ankr

Read a token's current price and then its historical price series.

  1. Retrieve the current USD price for the token contract.
  2. Retrieve the historical price series for the same token over the supplied time window.
What you'll need to have ready
  • blockchain: The chain the token contract lives on.
  • contractAddress: The token contract address to price.
  • fromTimestamp: Start of the historical window (unix seconds).
  • toTimestamp: End of the historical window (unix seconds).
  • interval: Sampling interval for the historical series (seconds).
  • limit: Maximum number of historical data points to return.
For your developer

Arazzo workflow ankr:token-price-and-history, 2 operations: ankrGetTokenPrice → ankrGetTokenPriceHistory. Specs on APIs.io.