subscribe
REQUESTSubscribe to one or more market data channels. Use on the Market Data server only.wss://stream.crypto.com/exchange/v1/market
subscribe
Request
Body
required
id int64required
Request id
method stringrequired
Possible values: [subscribe]
nonce int64required
Current timestamp in milliseconds.
params objectrequired
channels string[]required
Market data channels only, e.g. ["book.BTCUSD-PERP.10"], ["ticker.BTCUSD-PERP"], ["trade.BTCUSD-PERP"]
book_subscription_type BookSubscriptionType (string)
Possible values: [SNAPSHOT, SNAPSHOT_AND_UPDATE]
Book subscription type for order book channel.
book_update_frequency BookUpdateFrequency (string)
Possible values: [10, 100, 500]
Update frequency in ms; for book channel only.
WebSocket response
Schema
id int64
method string
code int32
0 = success
result object
Method-specific result
message string