Get recent ticks
Returns the last 120 seconds of price ticks for a feed, used to prepopulate streaming charts. Responses are cached for 1 second.
Returns the last 120 seconds of price ticks for a feed, used to prepopulate streaming charts. Responses are cached for 1 second.
feed_id*numberPyth Lazer feed ID (e.g. 1 for BTC)
1 <= valueRecent price ticks for a feed
application/json- response
Recent price ticks for a feed
items*array<>curl -X GET 'https://data.scalar.market/recent/1'{
"items": [
{
"price": 0,
"timestamp": 0
}
]
}Get protocol information GET
Returns protocol-wide parameters: contract addresses, cash denomination and other venue constants.
Get downsampled price sparklines GET
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.