Skip to main content
POST
POST /v1/pool/sparklines · 1 credit per 25 markets Small price arrays for list rows - one call for up to 100 markets in one request, each {chain, address} (or {chain, poolAddress}) so the batch can span chains. The response is keyed by pool address. One market: GET /v1/pool/sparklines, the same line. For token-level sparklines (best pool resolved for you), use POST /v1/token/sparklines.
Formerly POST /v1/pools/sparklines. The former path still answers the same call, at the same price, and markets[], the former name of items[], is still accepted (send one of the two).
Every line is a fixed grid: evenly spaced points that cover the whole timeframe, oldest to newest, the last one being the live price. An interval without a trade carries the previous price, and before the first trade of the timeframe a line holds its first price: you always get the full grid, or []. Two options shape the points:
  • timestamps: true returns each point as { at, value }, at being the start of its interval in unix milliseconds. Dated points start at the first trade of the timeframe, so a market younger than the timeframe returns fewer points.
  • quote: "usd" returns USD prices on every chain except Story (evm:1514: a request with a Story market returns 400). Native prices are the default on every chain, and quote applies to the whole request.

Authorizations

Authorization
string
header
required

Your raw API key (not needed on the demo server).

Body

application/json
items
object[]

1 to 100 of {chain, address} (or {chain, poolAddress}) pools, across chains. Billed as one call per 25 markets: up to 25 markets cost 1 credit, 26 to 50 cost 2 credits, and so on. Each item takes address or its other name, poolAddress.

Required array length: 1 - 100 elements
Example:
markets
object[]

The former name of items, still accepted: send one of the two.

Required array length: 1 - 100 elements
timeframe
string
default:24h

1m|5m|30m|1h|24h|7d. Default 24h.

Example:

"24h"

quote
default:native

native (default) or usd: usd serves each point in dollars, on every chain except Story (evm:1514).

Available options:
native
Example:

"native"

timestamps
boolean
default:false

true returns each point as { at, value }, at being the start of the point's interval in unix milliseconds, from the first trade of the window on. Default false: bare numbers, always the full grid.

Example:

true

Response

200

Standard { data, meta } envelope.