Skip to Content
Scalar
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
/instruments/{instrument_bytes}/price-history

Returns VWAP price buckets for an instrument's full cycle, bucketed by a resolution derived from the cycle duration.

Path Parameters

instrument_bytes*string

Instrument identifier in hex format (0x prefix optional)

Response Body

VWAP price history for an instrument

application/json
  1. response

VWAP price history for an instrument

buckets*array<>
resolution*number

Bucket resolution in seconds

Example Request
curl -X GET 'https://data.scalar.market/instruments/string/price-history'
Example Response
{
  "buckets": [
    {
      "timestamp": 0,
      "price": "string",
      "trades_count": 0
    }
  ],
  "resolution": 0
}