Streams
Available Streams
See below the available streams you can subscribe to:
pub enum StreamSubscription {
OrderUpdate { product_id: u32, subaccount: H256 },
Trade { product_id: u32 },
BestBidOffer { product_id: u32 },
Fill { product_id: u32, subaccount: H256 },
PositionChange { product_id: u32, subaccount: H256},
BookDepth { product_id: u32 },
}
Subscribing to a stream
Response
{
"result": null,
"id": 10
}
Unsubscribing
Response
{
"result": null,
"id": 10
}
Listing subscribed streams
{
"method": "list",
"id": 10
}
Response
{
"result": [
{
"type": "default"
},
{
"type": "trade",
"product_id": 0
}
],
"id": 10
}
Last updated