Price a market order as VWAP
quote_market_orderPrices a Bybit spot market order against live order-book depth, returning VWAP, slippage in basis points, depth sufficiency, and levels consumed. Estimate fill cost before trading; no order is placed.
Instructions
Price a market order against the current Bybit spot book and report the VWAP, the slippage versus the best price, whether the book is deep enough, and the number of levels consumed. 'amount' is sized in the quote currency (USDT) for a buy and in base coins for a sell, which is how each side is normally described; pass amount_unit to override. Slippage is expressed as a fraction and in basis points and is always positive when the fill is worse than the touch. No order is placed. Example: symbol='BTCUSDT', side='buy', amount=5000.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"side": "<side>",
"amount": "<amount>"
},
"name": "quote_market_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | 'buy' to consume the asks, 'sell' to consume the bids. | |
| amount | Yes | Order size. Buy orders are sized in the quote currency (USDT) by default and sell orders in base coins; pass amount_unit to say otherwise. | |
| symbol | Yes | Spot pair in Bybit notation, base coin first, such as 'BTCUSDT', 'ETHUSDT' or 'PEPEUSDC'. Case does not matter here. | |
| max_levels | No | How deep to walk the book while pricing, from 1 to 1000. The default of 200 covers most retail orders; raise it for large ones. | |
| amount_unit | No | 'quote' sizes the order by how much USDT you spend or receive; 'base' by how many coins you buy or sell. The default is 'quote' for a buy and 'base' for a sell, which is how each side is normally described. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||