Validate an order against exchange rules
check_order_constraintsValidates a proposed Bybit spot order against the pair's trading rules before sending, checking quantity and notional limits, precision, and price tick. Returns valid=true or the broken rules.
Instructions
Check a proposed order against the pair's published rules before sending it: minimum and maximum quantity, minimum and maximum notional, quantity precision and price tick. Returns valid=true with an empty issue list, or the exact rules broken with their limits. This validates only; nothing is sent to the exchange. Example: symbol='BTCUSDT', quantity=0.0001, price=95000.
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_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Optional limit price in the quote currency. Checked against the pair's tick size. | |
| symbol | Yes | Spot pair in Bybit notation, base coin first, such as 'BTCUSDT', 'ETHUSDT' or 'PEPEUSDC'. Case does not matter here. | |
| quantity | Yes | Order size in base coins, for example 0.05 BTC. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||