Skip to content
TraceFast Docs

A token's USD price, now or as of a past time or block

Open the token on its entity page →

The USD price of a token for one hour — the newest hour by default, or the hour holding timestamp or the block's time. The answer is the newest priced hour at or before that time (hour), what the price is (priceSource: an oracle reading, a DEX observation, a peg, or one carried over from an earlier hour — observedHour says which hour it was observed in), and the largest USD value it may vouch for (maxTrustedValueUsd; absent means no bound): an amount worth more at this price is not valued by it. The DEX and the oracle side it was chosen from are separate blocks, with how far they disagree. TraceFast prices a selected set of tokens; any other answers 404.

GET https://tracefast.xyz/api/v1/chains/1/tokens/{token}/price
ParameterInTypeNotes
tokenpathstringThe token contract, 0x + 40 hex, any case.
timestampqueryinteger, optionalUnix time, seconds: the price as of the hour holding it. Not with block.
blockqueryinteger, optionalA block: the price as of the hour holding its time. Not with timestamp.

Access — an API key on the Intelligence plan or higher (plans), or no key at all: pay per call with x402 at the same path on https://mpp.tracefast.xyz/api/v1, at the price its 402 states. As a tool for AI agents: get_token_price on the MCP server. Stable — see stability.

chains/1 is a literal: other chain ids answer 404 chain_not_supported. An unknown query parameter is refused rather than ignored.

Response

200 application/json, USDC. Lists in the example are cut to two entries.

{
  "data": {
    "chainId": 1,
    "token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "hour": 1794916800,
    "priceUsd": 1,
    "priceSource": "stable_peg",
    "observedHour": 1794916800,
    "ageHours": 0,
    "dex": {
      "priceUsd": 1,
      "pricingRoute": "stable_peg_usdc",
      "pool": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "confidenceTier": "high"
    },
    "oracle": {
      "priceUsd": 0.99975154,
      "address": "0x54586be62e3c3580375ae3723c145253060ca0c2",
      "roundsInHour": 2
    },
    "divergencePct": 0.02484600000000059
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918385619,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/token-price"
  }
}

data

FieldMeaning
ageHoursHours between observedHour and hour.
chainIdChain id. 1 is Ethereum mainnet.
dexThe DEX side of the hour; absent when there is none.
divergencePctHow far the oracle and DEX prices disagree, percent, when both exist. A number, not a verdict.
hourThe hour the price is for, Unix seconds (its start).
maxTrustedValueUsdThe largest USD value (amount × priceUsd) this price may vouch for. Absent means no bound. An amount worth more at this price is not valued by it.
observedHourThe hour it was observed in, Unix seconds — earlier than hour when carried.
oracleThe oracle side of the hour; absent when there is none.
priceSourceWhat the price is: chainlink_oracle, aave_oracle, dex_observed, stable_peg, or one of them carried over from an earlier hour (chainlink_carried, aave_oracle_carried, dex_carried).
priceUsdThe USD price.
tokenThe token, lowercase and 0x-prefixed.

data.dex

FieldMeaning
confidenceTierThe source's confidence in the DEX price.
poolThe pool it came from, lowercase and 0x-prefixed.
priceUsdThe DEX price of the hour.
pricingRouteHow the DEX price was derived, as the source states it.
sourceSwapCountHow many swaps the DEX price stands on. Absent when not stated.
sourceVolumeUsdHow much USD volume the DEX price stands on. Absent when not stated.

data.oracle

FieldMeaning
addressThe price feed contract, lowercase and 0x-prefixed.
priceUsdThe oracle price of the hour; absent when no round landed in it.
roundsInHourOracle updates within the hour: one is a heartbeat, several mean the price moved.

meta is the same envelope on every method — see conventions.

Errors

StatusWhen
400bad_request: a malformed token (address_invalid); timestamp not Unix seconds or in the future (timestamp_invalid); block not a positive integer (block_not_positive); both given (conflicting_parameters); an unknown query parameter
404not_found: no price is recorded for the token (at or before the time asked), or no block at that height; chain_not_supported, or an unknown path
422block_not_available: the block is past the history covered right now (coverage_gap with its bounds when blocks are temporarily unavailable); retry

Malformed input, unknown parameters and the key check's 401/403/429/503 are the same for every method — see conventions and API keys.


Last updated 19 Nov 2026, 11:46 UTC · verified against TraceFast v1.0.332 · Markdown