validateGridInput
Validates input parameters for a spot grid bot, returning acceptable ranges and error codes. Use before creating the bot to ensure parameter validity.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| cell_number | Yes | ||
| min_price | Yes | ||
| max_price | Yes | ||
| total_investment | Yes | ||
| stop_loss | No | ||
| take_profit | No | ||
| entry_price | No | ||
| base_investment | No | ||
| quote_investment | No | ||
| invest_mode | No | ||
| ts_percent | No | ||
| enable_trailing | No | ||
| limit_up_price | No |