Skip to Content
Market ServicesHTTP APIGet OHLCV window

Get OHLCV window

Read compact short-range OHLCV data for one market.

Use this for ranking, anomaly checks, or prompt context without pulling a full chart payload.

Back to Market API

Access

  • Surfaces: mcp, rest, skill
  • Metering: mcp_call, rest_call
  • Scope: DEX available · EVM family primary

Handles

SurfaceLabelValue
mcpMCPmarket.read_ohlcv
restHTTPGET /v1/market/ohlcv-window
skillSkillmarket.read_ohlcv

Contract notes

  • Send explicit chain, address, and interval values. See Parameter Contracts for shared validation rules.
  • Zero-address inputs such as 0x0000000000000000000000000000000000000000 and shorthand forms such as 0x0 are rejected.
  • Failed responses return machine-readable error.code plus both trace_id and request_id for support and retry diagnostics.

Request example

GET {GATEWAY_BASE_URL}/v1/market/ohlcv-window?market_kind=dex&chain=ethereum&address=0xC02aaA39b223FE8D0A0E5C4F27eAD9083C756Cc2&interval=1h&limit=5

Try send

Try send

Try OHLCV window

Send one direct browser request to the current hosted gateway base URL so the real network request is visible in devtools. The API key is only stored locally when you provide one.

Response example

{ "ohlcv_window": { "market_kind": "dex", "chain": "ethereum", "address": "0xC02aaA39b223FE8D0A0E5C4F27eAD9083C756Cc2", "interval": "1h", "points": [ { "timestamp": 1711111111, "open": 182.1, "high": 183.4, "low": 181.6, "close": 182.9, "volume": 145230.12 } ], "source_id": "multi-source-kline" }, "freshness_ms": 250, "source_status": "healthy" }

Request fields

Query parameters

FieldTypeRequiredNotes
market_kindstringRequiredMarket family. Use `dex` for now.
chainstringRequiredChain key. Use an enabled EVM chain such as `ethereum` or `base`.
addressstringRequiredcanonical EVM token address for the selected public chain. Send the full 20-byte `0x...` contract address.
intervalstringRequiredCandle interval.
limitnumberRequiredMax candle count.

Response fields

OHLCV window

FieldTypeNotes
ohlcv_window.market_kindstringMarket family.
ohlcv_window.chainstringMarket chain.
ohlcv_window.addressstringLookup address.
ohlcv_window.intervalstringApplied interval.
ohlcv_window.points[]arrayReturned candles.
ohlcv_window.points[].timestampnumberCandle timestamp.
ohlcv_window.points[].open / high / low / closenumberOHLC values.
ohlcv_window.points[].volumenumberCandle volume.
ohlcv_window.source_idstringBacking source id.

Response metadata

FieldTypeNotes
freshness_msnumberData age in milliseconds.
source_statusstringSource health for this response.
Last updated on