validateGridInput
Validate spot grid bot parameters before creation. Get acceptable ranges for investment, grid count, price bounds, and a check code that pinpoints any invalid input.
Instructions
Validates the input parameters for creating a spot grid bot, returning acceptable ranges for each parameter (investment amount, grid count, price bounds, stop-loss, take-profit, etc.) and a check code indicating any validation errors.
Use this endpoint before calling createGridBot to ensure parameters are within valid ranges. The response includes min/max ranges for every configurable field, plus a check_code enum that pinpoints the exact validation issue (if any).
Does not require authentication (guest mode, rate limit: 100 qps per IP).
Agent hint: Always call this before createGridBot to pre-validate parameters. The check_code field in the response tells you exactly what is wrong. A check_code of 0 means all parameters are valid.
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>",
"cell_number": "<cell_number>",
"min_price": "<min_price>",
"max_price": "<max_price>",
"total_investment": "<total_investment>"
},
"name": "validateGridInput"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| max_price | Yes | ||
| min_price | Yes | ||
| stop_loss | No | ||
| ts_percent | No | ||
| cell_number | Yes | ||
| entry_price | No | ||
| invest_mode | No | ||
| take_profit | No | ||
| limit_up_price | No | ||
| base_investment | No | ||
| enable_trailing | No | ||
| quote_investment | No | ||
| total_investment | Yes |