Token OHLCV chart
OHLCV bars for a token — the same series the OceanX charts draw, from the same sources. Solana mints are served from OceanX’s own indexed trades (one volume-ranked pool per bucket); EVM tokens are served from vendor OHLCV with our indexed trades merged on top.
With no from/to you get the most recent limit buckets. Responses are cached briefly per token+resolution, so a poll loop faster than the bucket width returns the same bars without costing you anything.
Requires the md.read scope, which is on every key by default.
Authorizations
An OceanX API key, created in the app under Settings → Developer API. Send it as Authorization: Bearer ox_live_…. These endpoints require the md.read scope, which is on every key by default.
Path Parameters
Base58 Solana mint, or a 0x EVM token address when chain names an EVM chain.
Query Parameters
Which chain the token lives on.
solana, ethereum, base, bnb, arbitrum, polygon, monad, hyperevm, robinhood Bucket width. Sub-minute resolutions are Solana-only in practice — no EVM data vendor publishes them, so an EVM request is served at the nearest FINER supported bucket and resolutionSeconds tells you which.
1s, 5s, 15s, 30s, 1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w, 1mn Window start, unix SECONDS (the bars themselves are milliseconds). Defaults to to - limit × resolution.
Window end, unix SECONDS. Defaults to now.
Maximum bars to return, counted from the end of the window.
1 <= x <= 1000price returns USD prices; mc returns market cap on the same axis (price × circulating supply). A token with no known supply figure — wrapped SOL, for instance — returns prices under either value.
price, mc Denomination of the OHLC prices. sol divides each bar by the SOL price of its own bucket, and is Solana-only — asking for it on an EVM chain is a 400. Volume (v) stays in USD either way.
usd, sol Restrict bars to one pool address. Solana only. Omit to let the server pick the volume-ranked pool per bucket, which is what the OceanX chart does.
Response
Bars, oldest first.
"solana"
"1m"
Bucket width actually served. Equals requestedResolutionSeconds on Solana; larger on an EVM chain whose vendor cannot serve the requested width.
Window start, unix seconds.
Window end, unix seconds.
price, mc usd, sol 