curl -X POST 'https://api.serialized.xyz/v1/pools/sparklines' \
-H 'Authorization: YOUR_API_KEY' -H 'Content-Type: application/json' \
-d '{"markets": [{"chain": "evm:8453", "address": "0x0ca6485b7e9cf814a3fd09d81672b07323535b64"}], "timeframe": "24h"}'
{
"data": {
"0x0ca6485b7e9cf814a3fd09d81672b07323535b64": [
5.249040755790959e-7,
5.299419269878368e-7,
5.341024278723588e-7,
5.353384270094856e-7,
5.367245992625111e-7,
5.382859734840854e-7,
"…"
]
},
"meta": {
"asOf": 1786725098728,
"timeframe": "24h",
"quote": "native"
}
}
{
"data": {
"3C5YE97HADPDxZehYq9Cis8AXr9aNyrUsczKzE1nDbW9": [
{ "at": 1790701200000, "value": 2.0211635444550846 },
{ "at": 1790704800000, "value": 2.0451174906709944 },
{ "at": 1790708400000, "value": 2.0222823998521657 },
{ "at": 1790712000000, "value": 2.042120738574924 },
"…"
]
},
"meta": {
"asOf": 1790787309837,
"timeframe": "24h",
"quote": "usd"
}
}
Market Sparklines
Small price arrays for list rows - one call for up to 100 markets, cross-chain, keyed by pool, one evenly spaced line per market that covers the whole timeframe. Timeframes 1m|5m|30m|1h|24h|7d, native or USD, optional timestamps. Missing pools return [] - we never invent data.
curl -X POST 'https://api.serialized.xyz/v1/pools/sparklines' \
-H 'Authorization: YOUR_API_KEY' -H 'Content-Type: application/json' \
-d '{"markets": [{"chain": "evm:8453", "address": "0x0ca6485b7e9cf814a3fd09d81672b07323535b64"}], "timeframe": "24h"}'
{
"data": {
"0x0ca6485b7e9cf814a3fd09d81672b07323535b64": [
5.249040755790959e-7,
5.299419269878368e-7,
5.341024278723588e-7,
5.353384270094856e-7,
5.367245992625111e-7,
5.382859734840854e-7,
"…"
]
},
"meta": {
"asOf": 1786725098728,
"timeframe": "24h",
"quote": "native"
}
}
{
"data": {
"3C5YE97HADPDxZehYq9Cis8AXr9aNyrUsczKzE1nDbW9": [
{ "at": 1790701200000, "value": 2.0211635444550846 },
{ "at": 1790704800000, "value": 2.0451174906709944 },
{ "at": 1790708400000, "value": 2.0222823998521657 },
{ "at": 1790712000000, "value": 2.042120738574924 },
"…"
]
},
"meta": {
"asOf": 1790787309837,
"timeframe": "24h",
"quote": "usd"
}
}
POST /v1/pools/sparklines · 1 per market credit
Small price arrays for list rows - one call for up to 100 markets in one request, each {chain, address} so the batch can span chains. The response is keyed by pool address. For token-level sparklines (best pool resolved for you), use POST /v1/token/sparklines.
| Timeframe | Points | Interval |
|---|---|---|
1m | 30 | 2 s |
5m | 30 | 10 s |
30m | 30 | 1 min |
1h | 30 | 2 min |
24h | 24 | 1 h |
7d | 28 | 6 h |
[].
Two options shape the points:
timestamps: truereturns each point as{ at, value },atbeing 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 Solana, each point converted at the SOL/USD rate of its own time. Native prices are the default on every chain, andquoteapplies to the whole request.
curl -X POST 'https://api.serialized.xyz/v1/pools/sparklines' \
-H 'Authorization: YOUR_API_KEY' -H 'Content-Type: application/json' \
-d '{"markets": [{"chain": "evm:8453", "address": "0x0ca6485b7e9cf814a3fd09d81672b07323535b64"}], "timeframe": "24h"}'
{
"data": {
"0x0ca6485b7e9cf814a3fd09d81672b07323535b64": [
5.249040755790959e-7,
5.299419269878368e-7,
5.341024278723588e-7,
5.353384270094856e-7,
5.367245992625111e-7,
5.382859734840854e-7,
"…"
]
},
"meta": {
"asOf": 1786725098728,
"timeframe": "24h",
"quote": "native"
}
}
{
"data": {
"3C5YE97HADPDxZehYq9Cis8AXr9aNyrUsczKzE1nDbW9": [
{ "at": 1790701200000, "value": 2.0211635444550846 },
{ "at": 1790704800000, "value": 2.0451174906709944 },
{ "at": 1790708400000, "value": 2.0222823998521657 },
{ "at": 1790712000000, "value": 2.042120738574924 },
"…"
]
},
"meta": {
"asOf": 1790787309837,
"timeframe": "24h",
"quote": "usd"
}
}
Authorizations
Your raw API key (not needed on the demo server).
Body
1 to 100 of {chain, address} pools, across chains. Billed per market.
1 - 100 elementsShow child attributes
Show child attributes
[
{ "chain": "evm:8453", "address": "0x0ca6…" }
]
1m|5m|30m|1h|24h|7d. Default 24h.
"24h"
native (default) or usd. usd converts each point at the SOL/USD rate of its own time; available on Solana.
native "native"
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.
true
Response
Standard { data, meta } envelope.