Orderbook
{
"messageType": "orderbook",
"message": {
"chainId": number, // e.g. 1 (mainnet), 137 (polygon)
"baseTokenAddress": string, // e.g. 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 (WETH)
"quoteTokenAddress": string, // e.g. 0xdac17f958d2ee523a2206206994597c13d831ec7 (USDT)
"side": "buy" | "sell",
"levels": [
{
// string representation of the quantity of current level e.g. (2.5 for 2.5 WETH)
quantity: string,
// string representation of the price per unit at that level
// (e.g. 3500 for "up to 2.5 WETH at 3500 USDT per WETH")
price: string
}
]
}
}Last updated