Skip to Content
Scalar
Data APIs

Get instrument data

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.

GET
/instruments/{instrument_bytes}

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.

Path Parameters

instrument_bytes*string

Instrument identifier in hex format (0x prefix optional)

Response Body

Trading statistics for an instrument

application/json
  1. response

Trading statistics for an instrument

instrument*string

Instrument identifier in hex format

trades_count*number

Number of trades on the instrument

open_interest*string

Open interest in whole contracts, as a string

total_volume*string

Total traded volume in cash units, as a string

last_traded_price*string

Last traded price as a decimal string

resolution_ts*number

Unix timestamp (seconds) the instrument resolved, 0 if open

score*number

Resolution score; equals cash_denominator when resolved

payout_ratio*number

Buyer payout ratio for the resolved outcome

is_admin_set*boolean

Whether the resolution was set by an admin

live_payout_ratio*|null
is_payout_finalized*boolean

Whether the payout ratio can no longer change: cycle ended, or the settler locked it (one touch touched, range accrual corridor breached, knockout barrier touched, high/low threshold reached)

Example Request
curl -X GET 'https://data.scalar.market/instruments/string'
Example Response
{
  "instrument": "string",
  "trades_count": 0,
  "open_interest": "string",
  "total_volume": "string",
  "last_traded_price": "string",
  "resolution_ts": 0,
  "score": 0,
  "payout_ratio": 0,
  "is_admin_set": true,
  "live_payout_ratio": 0,
  "is_payout_finalized": true
}