Skip to main content
Replaces a strategy’s params and schedule. Send the full definition, not only the fields that change.

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”strategy_id”stringrequiredStrategy ID (UUID)0f8e7c2a-…
“expected_revision”integerrequiredThe strategy’s current revision. The edit fails if the strategy changed since you read it1
”strategy_type”stringrequiredMust match the strategy’s current typetrailing_stop
”params”objectrequiredNew parameters. See Strategy parametersSee below
”scheduled_start_at”integeroptionalStart time in milliseconds. Can change only while the strategy is pending1716203600000
”scheduled_end_at”integeroptionalEnd time in milliseconds1716207200000
”expires_at”integeroptionalExpiry time in milliseconds1716207200000
”agent_wallet”stringoptionalAgent wallet address69trU9A5…
“expiry_window”integeroptionalSignature expiry in milliseconds30000

What you can edit

  • A strategy that has not placed any orders yet. This includes a strategy that is pending, or open and waiting for its trigger.
  • A trailing stop that is already tracking the price. You can change its trail and other settings, but not symbol or side.
You cannot edit a strategy that is 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_EDITABLE means the strategy’s state does not allow edits. STRATEGIST_FIELD_NOT_EDITABLE means you changed a field that is fixed, such as strategy_type
  • Status 404: Strategy not found (STRATEGIST_NOT_FOUND)
  • Status 422: expected_revision does not match (STRATEGIST_REVISION_CONFLICT). Read the strategy again and retry
  • Status 500: Internal server error

Code Example (Python)