OUTCOME · Discover
What changes
Read-only projection; it grants no mutation, settlement, traffic, or authority change.
Decentralized Trading
/api/v2/markets/{market_id}/order-bookPurpose and usage
Return a bounded, venue-specific aggregation of current bid and ask price levels for one canonical market as an informational snapshot, not an executable quote.
When to use it
Call this for a bounded view of current market depth before an informational display, liquidity assessment, or separately authorized order decision; refresh it because the snapshot can become stale immediately.
OUTCOME · Discover
Read-only projection; it grants no mutation, settlement, traffic, or authority change.
WHY IT MATTERS
ISOLATION + AUTHORITY
The authenticated owner, market, order, position, matching, risk, publisher, and settlement boundaries remain distinct. Documentation, contract visibility, and read access grant no execution authority; possession of a write scope still cannot bypass market status, risk, admission, allowlist, suspension, matching, publisher, or settlement gates. Current trading, matching, prediction, ingress, publisher, allowlist, suspension, market-status, and traffic controls remain frozen unless separately approved through their controlling process.
BEFORE YOU CALL
WHAT TO DO NEXT
AGENT GUIDANCE
Market data and catalog reads may be available while order entry is disabled. Confirm the market’s current state and your permissions before making a trading request; a production-listed route does not change market availability.
Use the deployed OpenAPI for exact parameters, schemas and security requirements. The tables below provide integration guidance.
Open this operation in OpenAPIRequest and response
Examples illustrate integration intent; the referenced OpenAPI operation and component schemas define the executable shape.
PARAMETERS
AuthorizationheaderRequiredBearer tokenCredential containing the trading:read scope.EXAMPLEBearer hc_live_…
market_idpathRequireduppercase hyphen-separated identifier · 3–64 charactersCanonical base, quote, and optional instrument identifier. Lowercase, underscore, repeated-hyphen, and slash aliases are rejected.EXAMPLEBTC-USD-PERP
venuequeryOptionaldex | securities | virtualAuthoritative venue catalog. Defaults to dex.EXAMPLEdex
depthqueryOptionalinteger · 1–200Maximum aggregated price levels returned per side; defaults to 50.EXAMPLE50
RESPONSES
{
"market_id": "BTC-USD-PERP",
"venue": "securities",
"sequence": "184221",
"snapshot_at": "2026-08-14T00:00:00Z",
"depth": 50,
"bids": [
{
"price": "42000.11",
"quantity": "1.25"
}
],
"asks": [
{
"price": "42000.12",
"quantity": "0.75"
}
],
"truncated": false
}{
"code": "missing_credentials",
"message": "Authorization: Bearer is required, or the supplied credential is invalid."
}missing_credentials{
"code": "insufficient_scope",
"message": "The credential lacks trading:read authority."
}insufficient_scope{
"code": "market_not_found",
"message": "The requested canonical market does not exist on the selected venue."
}market_not_found{
"code": "invalid_market_id",
"message": "The path identifier or venue value is not canonical."
}invalid_market_id{
"code": "market_data_unavailable",
"message": "The authoritative venue catalog is unavailable or has not been configured."
}market_data_unavailableOPERATIONAL NOTES
UPGRADING FROM V1
If you maintain an older integration, use this map to find the V2 replacement. Do not translate the old request field-for-field: rebuild it from the V2 parameters and schemas above because identity, authorization, replay protection, and response semantics may have changed.
/api/v1/dex/orderbookDEX: Get DEX Orderbook/api/v1/exchange/orderbookMTF: Get MTF Orderbook/api/v1/virtex/orderbookVIRTUAL: Get Virtual OrderbookThis route is implemented in canonical gateway source and appears in the production OpenAPI snapshot observed 2026-10-02T23:27:55.510Z. Authentication, tenant, feature, venue, and market policy still apply.
Verify the exact production OpenAPI operation Return to the V2 directory