Get downsampled price sparklines
Returns every feed's price over the requested window, downsampled to 73-121 points on one shared time grid (`start_ts` + i × `bucket_secs`). Buckets finer than a minute come from 1-second ticks, longer ones from the 5-minute and hourly rollup views. Empty buckets are null. Cached for 30 seconds.
Returns every feed's price over the requested window, downsampled to 73-121 points on one shared time grid (start_ts + i × bucket_secs). Buckets finer than a minute come from 1-second ticks, longer ones from the 5-minute and hourly rollup views. Empty buckets are null. Cached for 30 seconds.
seconds*numberWindow length in seconds, ending now; one of 1200, 3600, 86400, 604800
Downsampled price window for every feed
application/json- response
Downsampled price window for every feed
bucket_secs*numberSeconds per point — the grid step
start_ts*numberUnix timestamp (seconds) of values[0]; buckets align to it
items*array<>curl -X GET 'https://data.scalar.market/sparklines?seconds=0'{
"bucket_secs": 0,
"start_ts": 0,
"items": [
{
"feed_id": 0,
"values": [
0
]
}
]
}Get recent ticks GET
Returns the last 120 seconds of price ticks for a feed, used to prepopulate streaming charts. Responses are cached for 1 second.
Get symbol stats GET
Returns comprehensive statistics for all supported feeds: price changes (1H, 24H, 7D), 24H/7D high-low ranges, annualised realised volatility, range positions and sparkline data. Cached for 30 seconds.