Orderbook Data (ob_)
Body
jsonrpcstringRequiredDefault:
2.0methodstringRequiredDefault:
ob_getMarketsidintegerRequiredDefault:
1paramsarrayOptionalDefault:
[]Responses
200
Array of market objects with metadata and statistics
application/json
post
/ob_getMarkets200
Array of market objects with metadata and statistics
Body
jsonrpcstringRequiredDefault:
2.0methodstringRequiredDefault:
ob_getOrderbookidintegerRequiredDefault:
1paramsarrayRequiredExample:
Parameters:
orderbook_id(bytes32): The 32-byte orderbook identifierdepth(integer, optional): Maximum number of price levels to return for each side. If omitted, all available price levels are returned.
["0x0000000000000000000000000000000000000000000000000000000000000001",20]Responses
200
Orderbook snapshot with aggregated buy and sell orders
application/json
post
/ob_getOrderbook200
Orderbook snapshot with aggregated buy and sell orders
Body
jsonrpcstringRequiredDefault:
2.0methodstringRequiredDefault:
ob_getCandlesidintegerRequiredDefault:
1paramsarrayRequiredExample:
Parameters:
orderbook_id(bytes32): The 32-byte orderbook identifierquery(object): Query parameters with resolution, time range, and limit
["0x0000000000000000000000000000000000000000000000000000000000000001",{"resolution":"1h","from_ts":1704067200000000,"to_ts":1704153600000000,"limit":100}]Responses
200
Array of candle objects sorted by timestamp (newest first)
application/json
post
/ob_getCandles200
Array of candle objects sorted by timestamp (newest first)
Body
jsonrpcstringRequiredDefault:
2.0methodstringRequiredDefault:
ob_getOrdersidintegerRequiredDefault:
1paramsarrayRequiredExample:
Parameters:
address(address): The address to get orders forquery(object): Query parameters with optional orderbook_id, limit, cursor, and status filter
["0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",{"orderbook_id":"0x0000000000000000000000000000000000000000000000000000000000000001","limit":10,"status":"active"}]Responses
200
Object containing orders array and pagination cursor
application/json
post
/ob_getOrders200
Object containing orders array and pagination cursor
Body
jsonrpcstringRequiredDefault:
2.0methodstringRequiredDefault:
ob_getPositionsidintegerRequiredDefault:
1paramsstring[]RequiredExample:
Parameters:
address(address): The address to get positions for
["0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28"]Responses
200
Positions response with per-token positions and aggregate PnL
application/json
post
/ob_getPositions200
Positions response with per-token positions and aggregate PnL
Last updated

