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
coinstringRequiredExample: BTC
timeinteger · int64Required

Timestamp in milliseconds

spreadstringOptionalExample: 1.00
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
coinstringRequiredExample: BTC
timeinteger · int64Required

Timestamp in milliseconds

spreadstringOptionalExample: 1.00
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
coinstringOptionalExample: BTC
szistringOptional

Signed size (positive for long, negative for short)

Example: 1.5
entryPxstring · nullableOptionalExample: 43000.00
positionValuestringOptionalExample: 64500.00
unrealizedPnlstringOptionalExample: 375.75
liquidationPxstring · nullableOptionalExample: 38700.00
marginUsedstringOptionalExample: 6450.00
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
countintegerOptionalExample: 145
get
/api/marketPositionCount
200

Position count

Last updated