params and schedule. Send the full definition, not only the fields that change.
Operation Type (for Signing)
Request Body
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”account” | string | required | User’s wallet address | 42trU9A5… |
“signature” | string | required | Cryptographic signature | 5j1Vy9Uq… |
“timestamp” | integer | required | Current timestamp in milliseconds | 1716200000000 |
”strategy_id” | string | required | Strategy ID (UUID) | 0f8e7c2a-… |
“expected_revision” | integer | required | The strategy’s current revision. The edit fails if the strategy changed since you read it | 1 |
”strategy_type” | string | required | Must match the strategy’s current type | trailing_stop |
”params” | object | required | New parameters. See Strategy parameters | See below |
”scheduled_start_at” | integer | optional | Start time in milliseconds. Can change only while the strategy is pending | 1716203600000 |
”scheduled_end_at” | integer | optional | End time in milliseconds | 1716207200000 |
”expires_at” | integer | optional | Expiry time in milliseconds | 1716207200000 |
”agent_wallet” | string | optional | Agent wallet address | 69trU9A5… |
“expiry_window” | integer | optional | Signature expiry in milliseconds | 30000 |
What you can edit
- A strategy that has not placed any orders yet. This includes a strategy that is
pending, oropenand waiting for its trigger. - A trailing stop that is already tracking the price. You can change its trail and other settings, but not
symbolorside.
paused or finished, or a trigger swarm that has already triggered.
Response
- Status 200: Strategy updated
- Status 400: Invalid parameters, or the strategy cannot be edited.
STRATEGIST_NOT_EDITABLEmeans the strategy’s state does not allow edits.STRATEGIST_FIELD_NOT_EDITABLEmeans you changed a field that is fixed, such asstrategy_type - Status 404: Strategy not found (
STRATEGIST_NOT_FOUND) - Status 422:
expected_revisiondoes not match (STRATEGIST_REVISION_CONFLICT). Read the strategy again and retry - Status 500: Internal server error