Skip to content
TraceFast Docs

A token's hourly USD prices over a window

Open the token on its entity page →

The token's USD price for every priced hour in [from, to] (Unix seconds; the last 7 days by default, at most 90 days), oldest first — each with what the price is (priceSource), whether it was carried over from an earlier hour (carried), the largest USD value it may vouch for (maxTrustedValueUsd; absent means no bound) and the DEX and oracle prices of the hour where they exist. An hour without a price is absent, not zero. TraceFast prices a selected set of tokens; any other answers an empty list.

GET https://tracefast.xyz/api/v1/chains/1/tokens/{token}/price-history
ParameterInTypeNotes
tokenpathstringThe token contract, 0x + 40 hex, any case.
fromqueryinteger, optionalUnix time, seconds: the window's start (its hour included). Default: 7 days before to.
toqueryinteger, optionalUnix time, seconds: the window's end (its hour included). Default: now.

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_history 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",
    "fromHour": 1794312000,
    "toHour": 1794916800,
    "points": [
      {
        "hour": 1794312000,
        "priceUsd": 1,
        "priceSource": "stable_peg",
        "carried": false,
        "dexPriceUsd": 1,
        "dexConfidenceTier": "high",
        "oraclePriceUsd": 0.99977587,
        "divergencePct": 0.022412999999998906
      },
      {
        "hour": 1794315600,
        "priceUsd": 1,
        "priceSource": "stable_peg",
        "carried": false,
        "dexPriceUsd": 1,
        "dexConfidenceTier": "high",
        "oraclePriceUsd": 0.99977587,
        "divergencePct": 0.022412999999998906
      }
    ]
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918386407,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/token-price-history"
  }
}

data

FieldMeaning
chainIdChain id. 1 is Ethereum mainnet.
fromHourStart of the first hour of the window read, Unix seconds, included.
pointsEvery priced hour in the window; an hour without a price is absent.
toHourStart of the last hour of the window read, Unix seconds, included.
tokenThe token, lowercase and 0x-prefixed.

data.points[]

FieldMeaning
carriedtrue when the price was carried over from an earlier hour.
dexConfidenceTierThe source's confidence in the DEX price, where the hour has one.
dexPriceUsdThe DEX price of the hour, where the hour has one.
divergencePctHow far the two disagree, percent, when both exist.
hourThe hour, Unix seconds (its start).
maxTrustedValueUsdThe largest USD value this price may vouch for. Absent means no bound.
oraclePriceUsdThe oracle price, where a round landed in the hour.
priceSourceWhat the price is (the vocabulary of getTokenPrice).
priceUsdThe USD price.

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

Errors

StatusWhen
400bad_request: a malformed token (address_invalid); from / to not Unix seconds or in the future (timestamp_invalid); from after to (time_window_inverted); a window over 90 days (time_window_out_of_range); an unknown query parameter
404chain_not_supported, or an unknown path

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