Orders
Stream orders in an accounts in Standard spot exchange
✅ Request
{
"id": 1,
"method": "spot.orders.subscribe.accounts",
"params": {
"addresses": ["0x0000000000000000000000000000000000000000"]
}
}{
"id": 1,
"method": "spot.orders.unsubscribe.accounts",
"params": {
"addresses": ["0x0000000000000000000000000000000000000000"]
}
}📤 Response
{
"result": null,
"id": 1
}{
"code": 1,
"msg": "Internal Error: {error}"
}📡 Streamed Data Format
[
"spotOrder" // eventId
true, // isBid (true = buy order, false = sell order)
987654, // orderId
"0xBaseTokenAddress", // base token address
"ETH", // base token symbol
"0xQuoteTokenAddress", // quote token address
"USDC", // quote token symbol
"ETH/USDC", // pair symbol
"0xPairContractAddress", // pair contract address
3142.25, // price
"0xAssetTokenAddress", // traded asset address
"ETH", // traded asset symbol
2.0, // amount
6284.5, // placed value (commonly price * amount)
1713657900, // timestamp (Unix)
"0xUserAddress", // account placing the order
"0xTransactionHash" // transaction hash
]
📄 Field Descriptions
Index
Field
Type
Description
📡 Streamed Data Format
📄 Field Descriptions
Index
Field
Type
Description
Last updated