Data APIs
Get instrument price history
Returns VWAP price buckets for an instrument's full cycle, bucketed by a resolution derived from the cycle duration.
GET
Returns VWAP price buckets for an instrument's full cycle, bucketed by a resolution derived from the cycle duration.
instrument_bytes*stringInstrument identifier in hex format (0x prefix optional)
VWAP price history for an instrument
application/json- response
VWAP price history for an instrument
buckets*array<>resolution*numberBucket resolution in seconds
curl -X GET 'https://data.scalar.market/instruments/string/price-history'Example Response
{
"buckets": [
{
"timestamp": 0,
"price": "string",
"trades_count": 0
}
],
"resolution": 0
}Get instrument data GET
Returns trading statistics for an instrument: trade count, open interest, volume, last traded price, resolution state and the live buyer payout ratio implied by the latest Pyth 1s prices.
List trades for an instrument GET
Returns paginated trades for a specific instrument, ordered by timestamp descending.