Orderbook

The Orderbook provides real-time pricing and detailed data from private market makers, aggregated through the Native Swap Engine.

Swappers can access the latest information by querying the orderbook endpoint and analyzing the returned data, which includes price levels and token quantities.

Example Response:


    {
        "base_symbol": "ETH",
        "base_address": "0x2170ed0880ac9a755fd29b2688956bd959f933f8",
        "quote_symbol": "USDT",
        "quote_address": "0x55d398326f99059ff775485246999027b3197955",
        "levels": [
            [0.0001, 3621.71],
            [10, 3621.72],
            [40.75786733219471, 3621.54]
        ],
        "side": "bid",
        "minimum_in_base": 0.0001
    }
]

For further details about the orderbook endpoint, refer to the following link: Swap API, PMM API

Note: The price levels provided are non-cumulative. For example, to execute a trade of 30 ETH for USDT, the price would be calculated as: 0.0001 * 3621.71 + 10 * 3621.72 + (30 - 0.0001 - 10) * 3621.54 = 108,648.000017

Last updated