Check an order against the venue rules
check_orderValidates a Bybit order quantity and price against per-pair lot, size, value, and order-type rules, returning the accepted quantity and the first rule an order breaks.
Instructions
Applies Bybit's per-pair rules to one quantity and price: lot step, minimum quantity, maximum quantity (limit and market), minimum and maximum order value. Returns the quantity the venue would actually accept and the first rule the order breaks, if any.
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>",
"quantity": "<quantity>"
},
"name": "check_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | 'buy' walks the asks, 'sell' walks the bids. | buy |
| price | No | Price to value the order at. Omit to use the mid of the book. | |
| venue | No | Venue to read. Default 'bybit', the only adapter so far. | bybit |
| symbol | Yes | Pair in any spelling: 'BTC/USDT', 'BTCUSDT' or 'btc-usdt'. | |
| quantity | Yes | Base-asset quantity to validate, in the pair's base coin. | |
| order_type | No | 'market' (default) or 'limit'. Bybit publishes a tighter quantity ceiling for market orders. | market |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||