Endpoints · Strategies

Delete a strategy

DELETE/v2/strategies/{name}

By default, DELETE soft-deletes: the runner stops evaluating, but the strategy record and its positions remain queryable and individually closeable. This is the default because force-closing real positions on an accidental DELETE would be costly. Pass `?force=true` to soft-delete and force-close every open position belonging to this strategy in one call. Closed positions get `exit_reason: 'force_close'` and `shares_remaining: 0`.

Plan access

Hobby and above.

Rate limit

Hobby 60/min · Pro 2,000/min · Scale 10,000/min.

Capacity

Counts against your saved-rule capacity until v1.5 introduces a separate cap.

stringrequired

Strategy slug.

booleandefault false

When `true`, also force-close all open positions for this strategy.

200
{ as_of, ok: true, soft_deleted: true, closed_positions: <int> }. closed_positions is 0 unless ?force=true was passed.
404
not_found — already deleted, or no strategy with that name.