Skip to main content
WSS
marketAddr
type:string
required

Market address (Aptos address format, e.g. 0x456...)

aggregationLevel
type:string
required

Price aggregation level for order book depth (1, 2, 5, 10, 100, or 1000)

MarketDepthMessage
type:object

Order book depth for one Decibel market address, perp or spot, with aggregated price levels. Spot BTC and perp BTC are different markets with different addresses and require separate subscriptions. The depth payload does not carry asset_type; the subscribed market address identifies the product. Optional aggregationLevel parameter (1, 2, 5, 10, 100, or 1000) can be appended to the topic and defaults to 1. Spot clients derive mid price from best_bid and best_ask because spot markets do not publish market_price.