Edit Grid Bot
Description: Updates an existing Grid Bot using its ID
Permission: BOTS_WRITE Security: SIGNED
PATCH
/ver1/grid_bots/{id}/manual
Path Parameter
id integer
required
Unique 3Commas ID for this Grid Bot entity
Body Parameters
name integer
Grid Bot name specified by the user
upper_price number
required
The maximum price of the trading range, above which the bot will not place sell orders
lower_price number
required
The maximum price of the trading range, above which the bot will not place sell orders
grid_quantity integer
required
The number of grid levels between the upper and lower price boundaries.
This value is limited based on the exchange’s rules for rates, limits, and leverage
grid_type string
Type of Grid Bot configuration: geometric
or arithmetic
quantity_per_grid number
required
Quantity of the asset allocated per Grid Bot level order
upper_stop_loss_enabled boolean
required
Indicates if upper stop-loss settings are enabled. Use true
to activate the settings group
upper_stop_loss_action string
The action to perform if the asset price reaches or exceeds the set upper stop-loss level: stop_bot
, stop_bot_and_sell
, stop_bot_and_close_position
upper_stop_loss_price number
The price level that triggers the upper stop-loss action
lower_stop_loss_enabled boolean
Indicates if lower stop-loss settings are enabled. Use true
to activate the settings group
lower_stop_loss_action string
The action to perform if the asset price reaches or falls below the set lower stop-loss level: stop_bot
,stop_bot_and_sell
, stop_bot_and_close_position
lower_stop_loss_price number
The price level that triggers the lower stop-loss action
leverage_type string
Type of leverage used for the futures account: cross
,isolated
leverage_custom_value number
Custom leverage value set for the Grid Bot
max_active_buy_lines integer
Maximum number of active buy orders that can be placed simultaneously
max_active_sell_lines integer
Maximum number of active sell orders that can be placed simultaneously
trailing_up_enabled boolean
Indicates if the trailing-up feature is enabled (true
or not (false
)
trailing_down_enabled boolean
Indicates if the trailing-down feature is enabled (true
or not (false
)
expansion_down_enabled boolean
Indicates if the grid expansion downwards is enabled (true
or not (false
)
expansion_down_stop_price number
The price at which the downward grid expansion should stop
This parameter is required when expansion_down_enabled
is set to true
expansion_up_enabled boolean
Indicates if the grid expansion upwards is enabled (true
or not (false
)
expansion_up_stop_price number
The price at which the upward grid expansion should stop. This parameter is required when expansion_up_enabled
is set to true
.
ignore_warnings boolean
Ignores warnings and forces the creation of the Grid Bot (true
) or not (false
)
note integer
Optional user-defined note for the Grid Bot.
[1 ... 300]
characters
Parameters response
If successful, the response includes a copy of the updated Grid Bot entity.
Example Request
PATCH /ver1/grid_bots/2291725/manual
{
"name": "CHANGED USDT_BTCUSDT EXAMPLE",
"upper_price": 70000.0,
"lower_price": 56000.0,
"quantity_per_grid": 150,
"grids_quantity": 40,
"order_currency_type": "quote",
"profit_currency_type": "quote",
"trailing_up_enabled": true,
"trailing_down_enabled": false,
"grid_type": "arithmetic",
"expansion_down_enabled": true,
"expansion_down_stop_price": 54000.0,
"expansion_up_enabled": false,
"lower_stop_loss_enabled": true,
"lower_stop_loss_price": 50000.0,
"lower_stop_loss_action": "stop_bot_and_close_position",
"upper_stop_loss_enabled": true,
"upper_stop_loss_price": 75000.0,
"upper_stop_loss_action": "stop_bot",
"note": "Example bot",
"leverage_type": "cross",
"leverage_custom_value": 10,
"mode": "long"
}
Example response and errors
Last updated
Was this helpful?