Read order book depth
Returns the current order book depth (bids and asks) for a given instrument. The instrument must reference a known product and parameter index, and refer to the product's currently active cycle. Every response includes a server-generated `x-request-id` for correlating the request with endpoint logs.
Returns the current order book depth (bids and asks) for a given instrument.
The instrument must reference a known product and parameter index, and refer to
the product's currently active cycle.
Every response includes a server-generated x-request-id for correlating
the request with endpoint logs.
instrument_bytes*stringInstrument identifier in hex format (0x prefix optional)
max_levels?integerMaximum levels of depth to return per side. Defaults to 50, capped at 500.
int320 <= valueOrder book depth
application/json- response
A depth snapshot. GET /instruments/{instrument_bytes}/depth returns exactly
the shape the market-data WebSocket sends as depth_snapshot, minus type.
asks*array<>bids*array<>instrument*stringInstrument identifier as 0x-prefixed lowercase hex
sequence_id*integerThe book's next-expected sequence: every update with seq < sequence_id
is already reflected here, so it is the first_seq_id of the next delta.
int640 <= valuecurl -X GET 'https://testnet-api.scalar.market/instruments/string/depth'{
"asks": [
{
"price": 0.1,
"quantity": 0
}
],
"bids": [
{
"price": 0.1,
"quantity": 0
}
],
"instrument": "string",
"sequence_id": 0
}List tradable products GET
Returns every product the venue trades, with full details. Strike parameters come back as raw `params_list` blobs — one per params index, so `params_list[i]` belongs to instrument `(product_ptr, cycle, i)`. They are the settler's own bytes, not decoded by the venue.
Submit an order POST
Creates an order in the matching engine after validating the user, client tag, instrument, price range, and request signature. `valid_till` must be at least 150 seconds in the future; the order is then matchable for `valid_till - now - valid_till_buffer`. `position_limit_exceeded` means the order would exceed the signed 64-bit outstanding size or effective position for this user and instrument. The nonce remains available for retry after exposure changes.