createGridBot
Create a spot grid bot by specifying trading pair, price range, grid count, and investment amount. Supports optional entry price, stop-loss, take-profit, and trailing stop.
Instructions
Creates a spot grid bot with the specified trading pair, price range, grid count, and investment amount. Optionally supports entry price, stop-loss/take-profit, trailing stop, and grid trailing (auto-shift).
Prerequisites:
Call validateGridInput first to ensure parameters are valid.
User must be authenticated and pass KYC/compliance checks.
Returns grid_id on success. If the user is banned (status_code=421), ban_reason_text provides a localized explanation.
Rate limit: 3 qps per UID.
Agent hint: Always call validateGridInput before this endpoint. The symbol field uses uppercase format like "BTCUSDT". Use invest_mode to control whether to invest in quote only (0), base only (1), or both (2).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| max_price | Yes | ||
| min_price | Yes | ||
| total_investment | Yes | ||
| cell_number | Yes | ||
| followed_grid_id | No | ||
| source | No | ||
| entry_price | No | ||
| stop_loss_price | No | ||
| take_profit_price | No | ||
| toolsDiscoveryParameter | No | ||
| base_investment | No | ||
| quote_investment | No | ||
| invest_mode | No | ||
| block_source | No | ||
| create_type | No | ||
| ts_percent | No | ||
| enable_trailing | No | ||
| limit_up_price | No | ||
| channel | No |