stopStrategy
Terminate a running strategy and immediately cancel all pending orders to respond to unfavorable market conditions.
Instructions
Terminates an active strategy and cancels all associated pending orders.
When to use:
Stop strategy before it completes naturally
React to changing market conditions
Cancel strategy that has unfavorable execution
Emergency stop for risk management
What happens when you stop:
Strategy status → Terminated
All pending orders → Canceled immediately
Partially filled orders → Cancel remaining unfilled portion
Filled orders → No change (remain as filled)
Strategy execution stats → Preserved for history
Important notes:
Stopped strategies cannot be restarted
To continue, create a new strategy with remaining size
Strategy terminateType will be set to "UserStop" (1)
All child orders are canceled, not just active ones
Rate limit: 10 requests per second per UID
Agent hint: Use this endpoint when user wants to stop a running strategy. Common requests: "stop my strategy", "cancel TWAP", "stop strategy X". Requires strategyId - if not provided, query strategy list first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategyId | Yes |