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
| Parameter | In | Type | Notes |
|---|---|---|---|
token | path | string | The token contract, 0x + 40 hex, any case. |
timestamp | query | integer, optional | Unix time, seconds: the price as of the hour holding it. Not with block. |
block | query | integer, optional | A 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
| Field | Meaning |
|---|---|
ageHours | Hours between observedHour and hour. |
chainId | Chain id. 1 is Ethereum mainnet. |
dex | The DEX side of the hour; absent when there is none. |
divergencePct | How far the oracle and DEX prices disagree, percent, when both exist. A number, not a verdict. |
hour | The hour the price is for, Unix seconds (its start). |
maxTrustedValueUsd | The 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. |
observedHour | The hour it was observed in, Unix seconds — earlier than hour when carried. |
oracle | The oracle side of the hour; absent when there is none. |
priceSource | What 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). |
priceUsd | The USD price. |
token | The token, lowercase and 0x-prefixed. |
data.dex
| Field | Meaning |
|---|---|
confidenceTier | The source's confidence in the DEX price. |
pool | The pool it came from, lowercase and 0x-prefixed. |
priceUsd | The DEX price of the hour. |
pricingRoute | How the DEX price was derived, as the source states it. |
sourceSwapCount | How many swaps the DEX price stands on. Absent when not stated. |
sourceVolumeUsd | How much USD volume the DEX price stands on. Absent when not stated. |
data.oracle
| Field | Meaning |
|---|---|
address | The price feed contract, lowercase and 0x-prefixed. |
priceUsd | The oracle price of the hour; absent when no round landed in it. |
roundsInHour | Oracle updates within the hour: one is a heartbeat, several mean the price moved. |
meta is the same envelope on every method — see conventions.
Errors
| Status | When |
|---|---|
| 400 | bad_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 |
| 404 | not_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 |
| 422 | block_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.
Related pages
- One token
- Token holders
- Token transfers
- Token statistics
- All API methods — every method on one page
- Conventions — requests, responses, errors and pagination
Last updated 19 Nov 2026, 11:46 UTC · verified against TraceFast v1.0.332 · Markdown