validateFGridInput
Validate futures grid bot parameters and get allowable ranges before creating one. Identifies out-of-range inputs via check_code to prevent errors.
Instructions
Validates the input parameters for creating a futures grid bot and returns the allowable ranges for each parameter (investment, profit, grid count, price bounds, leverage, TP/SL, etc.).
Use this endpoint before calling /v5/fgridbot/create to ensure parameters are within valid bounds. The response includes a check_code that indicates which parameter is out of range if validation fails.
Rate limit: 10 requests per second per UID.
Agent hint: Call this endpoint first to get valid parameter ranges before creating a grid bot. If check_code is non-zero, the specific validation error is indicated by the code value.
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>",
"leverage": "<leverage>",
"grid_type": "<grid_type>",
"grid_mode": "<grid_mode>"
},
"name": "validateFGridInput"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| leverage | Yes | ||
| grid_mode | Yes | ||
| grid_type | Yes | ||
| max_price | Yes | ||
| min_price | Yes | ||
| tp_sl_type | No | ||
| cell_number | Yes | ||
| entry_price | No | ||
| init_margin | No | ||
| move_up_price | No | ||
| stop_loss_per | No | ||
| move_down_price | No | ||
| stop_loss_price | No | ||
| take_profit_per | No | ||
| take_profit_price | No | ||
| trailing_stop_per | No |