QX order book and QSwap pool
qmax_get_order_bookWhat is resting on the QX order book (grouped by price, with cumulative size and cost from the best price outward, best bid/ask, spread) and the QSwap pool (reserves, price, and how far trades of 0.1% to 5% of the pool would move the price). Use it to judge depth before sizing an order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one. | |
| levels | No | Price levels per side of the QX book |