Compare slippage across sizes
get_slippage_curvePrices one order at multiple sizes against a single order-book snapshot to build a comparable slippage curve, returning VWAP, slippage in basis points, and fillability per size.
Instructions
Price the same order at several sizes against one snapshot of the book, which is what you want for a slippage table: separate calls would each fetch a different book and the points would not be comparable. Returns one point per size with its VWAP, slippage in basis points, levels consumed and whether it was fully fillable. Example: symbol='BTCUSDT', side='sell', amounts=[100, 1000, 10000].
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>",
"amounts": "<amounts>"
},
"name": "get_slippage_curve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | 'buy' to consume the asks, 'sell' to consume the bids. | |
| symbol | Yes | Spot pair in Bybit notation, base coin first, such as 'BTCUSDT', 'ETHUSDT' or 'PEPEUSDC'. Case does not matter here. | |
| amounts | Yes | Two to twelve order sizes to price against the same book, for example [100, 1000, 10000]. | |
| 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 | |||