Skip to main content
Use positions:terminate and command action terminate. The existing owner chooses cancellation or closure from current lifecycle evidence. A pending order can fill while cancellation is in progress; termination handles remaining exposure instead of promising to leave any new fill open.

Complete request

The link, position UUID and times below are illustrative. Use the exact position ID from an OPEN receipt or an authorized position read, with the same link/catalog instrument. 1893456120 is 2030-01-01T00:02:00Z; it must be replaced for a deliberately new intent, never refreshed on a transport retry.

Acceptance and durable ownership

A new POST returns HTTP 202:
A later GET /v1/commands/get?id=33333333-3333-4333-8333-333333333333 can return HTTP 200 with a durably armed close:
For a pending lifecycle with no filled exposure at the arm, the alternative durable cancel evidence can be:
terminal_request_kind is 1 close or 2 cancel; the positive sequence identifies the durably armed request. These are two alternative examples. Do not choose the kind or sequence in the client. The evidence can appear while the receipt is still dispatching, before the synchronous owner call returns. Already-owned or moot termination can return execution_observed without a newly correlated arm. Neither the recorded kind nor handed_off proves completed exchange cancellation or zero exposure. Later fills and delayed evidence still belong to the lifecycle owner.

Verify the trading outcome

  1. Track the accepted receipt UUID and any error_code.
  2. Read the exact position with GET /v1/positions/get, or consume a current complete authorized publication.
  3. Examine canonical allocation exposure, the current order lineages and terminal/completion projections. Zero exposure alone does not resolve a still-working physical order.
  4. Wait for the actual lifecycle’s completion before dependent operations such as a close-and-reverse strategy. A command receipt is not that completion event.
Use position state and the stream protocol for interpretation. An incomplete or temporarily empty list is not proof of flatness.

Error examples and retry

Sending a nested request to TERMINATE fails admission with HTTP 400:
If effects cannot be resolved safely, receipt detail can instead return HTTP 200:
Inspect the receipt and current trading evidence; do not issue new terminate IDs repeatedly to accelerate processing. A transport retry retransmits the exact original command and returns its original receipt identity. Already-owned termination/protection/recovery may continue after key revocation or entitlement expiry. Revocation itself is not a close operation.

Multiple positions and TradingView

The ordinary API command targets one position. A controller may freeze a reviewed list from complete authorized state and submit bounded per-position commands, each with its own identity. That is not an atomic account-wide close and does not include later positions. TradingView’s explicitly authorized strategy or market termination freezes at most 64 targets. Parent and child receipts expose partial outcomes through the same receipt detail endpoint. The group does not create a permanent market pause or manage arbitrary exchange positions outside Liftx. See TradingView. There is no arbitrary DELETE /orders/..., guaranteed cancel-only instruction or atomic close-and-reverse action. Use the canonical owners and current evidence for each intended lifecycle step.