Market Data

Public market data endpoints - prices, orderbooks, candles

Get L2 order book

get
/api/l2book

Returns aggregated order book levels (bids and asks) from the order book cache

Query parameters
symbolstringRequired

Market symbol (e.g., BTC, ETH, SOL)

Example: BTC
Responses
chevron-right
200

Order book snapshot

application/json
get
/api/l2book
200

Order book snapshot

Get engine L2 order book

get
/api/l2book/engine

Returns order book directly from matching engine with real-time data

Query parameters
symbolstringRequired

Market symbol (e.g., BTC, ETH, SOL)

Example: BTC
Responses
chevron-right
200

Engine order book

application/json
get
/api/l2book/engine

Get user positions

get
/api/positions

Returns open positions for a specific user

Query parameters
userstringOptional

User address to filter positions (optional)

Example: 0x1234567890abcdef1234567890abcdef12345678
Responses
chevron-right
200

List of user positions

application/json
get
/api/positions

Get position count for a market

get
/api/marketPositionCount

Returns number of open positions for a specific market up to a given sequence number

Query parameters
midinteger · uint16Required

Market ID (0 = BTC, 1 = ETH, etc.)

Example: 0
maxSequenceinteger · int64Required

Maximum sequence number to include

Example: 1000000
Responses
chevron-right
200

Position count

application/json
get
/api/marketPositionCount
200

Position count

Last updated