Skip to main content
Use positions:modify to submit changes and read to obtain current state. MODIFY supplies a complete intended PositionRequest; it is not JSON Patch and not a replay of the original OPEN JSON.

Read the current modification publication

The response uses success/message/data; data is a current Position publication, not a ready-made modification request. Use its revision, current OPEN/TP rows, stable slot_id values, current internal physical order_id values and protection configuration. See the endpoint schema for the complete publication.

Build the intended configuration

All examples on this page use a fictitious account link 17, illustrative UUIDs and 2030-01-01 UTC timestamps. BTC-USDT-SWAP illustrates an exact canonical catalog ID for a supported BTC/USDT linear perpetual; it is not a universal symbol alias. Assume the selected catalog permits the depicted order roles, cross margin, 2x leverage, price ticks and 0.001 BTC quantity. Resolve your own link and current catalog first. These values are not live quotes, minimum-size claims or trading recommendations.

Full protection modification

Assume a fresh revision 7 with one OPEN slot 44444444-4444-4444-8444-444444444444 and one TP slot 55555555-5555-4555-8555-555555555555. Both are synthetic UUIDs representing values read from the publication, not IDs the client chooses for existing rows. Assume the current row prices and quantities exactly match this request. This moves the static SL from 68,600 to 69,300 (1% below the depicted 70,000 first-entry reference), disables SLx, and retains the entry and static full TP. Unchanged leverage is omitted.
Submit the saved command through POST /v1/commands. HTTP 202 returns:
After an ordinary successful owner return, HTTP 200 from receipt detail can show:
execution_observed is not an acknowledgment that every persistence write or exchange action completed. Reconcile the current position, row generations and protections before dependent work. This command does not become a fill or flatness proof merely because its receipt is resolved.

Amend an existing pending order

This fragment belongs inside a complete request built from fresh state. It changes the current OPEN order to 69,900 for 0.001 BTC. Update that row’s open_prices_* / open_quantities_* arrays to the same intended values and preserve its current open_slot_ids entry.
Both IDs above are illustrative. An exchange-native order ID is not a Liftx order_id. A retained slot can have a newer physical successor, so the slot alone does not authorize an amendment of an old order. Price and quantity are optional paired values on an amendment; supply the pair for each value being changed.

Remove a pending attached row

There is no arbitrary exchange-order cancellation endpoint. Supported row removal is expressed through the complete intended rows and retained slot list, subject to the existing lifecycle rules. Omitting a current slot can request cancellation; accidental omission therefore changes trading intent. Preserve filled row history and build from current state instead of historical OPEN JSON. For the whole lifecycle, use terminate. A pending order can fill during cancellation; a stale client observation cannot promise a cancel-only outcome. The existing modification owner registers the cancellation barrier, cancels outside its position lock, checks the exact generation and reconciles fresh state before replacement/protection work.

Revision conflicts and uncertain effects

Omitting the required revision fails the initial POST with HTTP 400:
A valid revision can become stale before execution. If there were no prior possible effects, a later receipt GET returns HTTP 200 with a rejection like:
This rejection is an alternative outcome for the same illustrative command, not a second state after the successful outcome above. Read a fresh publication, reassess the entire intended change, and allocate a new command only if it is still wanted. Do not simply substitute the new revision into an old request. If earlier leverage I/O or another effect makes the outcome uncertain, the receipt can instead be operator_required with EXECUTION_UNCERTAIN. A lost response likewise does not prove rejection. Inspect the original receipt; do not replay the modification with a new identity or invent compensating trades.

TradingView boundary

Advanced TradingView payloads use the same request model, but TradingView MODIFY must preserve OPEN rows. Pine cannot retrieve Liftx’s current publication or consume the webhook response. Use an API controller with current reads for state-dependent row amendments and conflict reconciliation. There is no blind group MODIFY. See TradingView integration for its source ordering and optional revision contract.