positions:open and POST /v1/commands. Also grant read in the intended link/instrument scope when your controller needs catalog discovery and lifecycle reconciliation.
Resolve the market before sizing
- Select the exact account through
/v1/exchange-linksand the instrument through/v1/symbols/list. - Check product topology, trading state, tick/lot steps, minimum/maximum size, order roles and account configuration. Read fees and eligible settlement currency where applicable.
- Express each quantity in
quantity_assetunits. For a linear product, BTC input is BTC, not a venue contract count. Quote input is quote notional, not margin collateral. - Build one complete PositionRequest, including protections that should belong to the lifecycle from creation.
- Save a new command identity, issuance time, deadline and full request before sending it. Omit
position_id; Liftx allocates it once for that accepted OPEN.
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.
Limit entry with SL, SLx and TP
All four OPEN decimal arrays and the three feature switches (
sl_enabled, slx_enabled, tp_enabled) are required. Enabling a protection requires its applicable fields; inactive options are omitted here. Explicit initial SLx price pairs are optional: use the builder’s fee-aware reference if supplying them. Do not calculate them from an assumed fill at the limit price.
A rearranged SL or TP has different intent: use sl_price_rearrangement:true with the chosen SL reference/distance, or tp_price_rearrangement:true with valid price-distance tp_pnls. Do not treat the pictured static prices as fixed while also enabling rearrangement. Protections and grids covers those alternatives and TP-trigger SLx.
Minimum shape for a market entry
For the same illustrative derivative catalog, the following is a complete market OPEN with all protections disabled. It is a separate alternative, not an additional command to send after the limit example.70,000 only to demonstrate the format. Use a current reviewed builder/catalog reference for a real command.
For spot, select its own catalog ID (for example BTC-USDT only when your catalog actually returns it), include the eligible trading_currency, and omit derivative-only margin/leverage fields. A quantity_asset:"BTC" quantity of "1" at scale 3 is 0.001 BTC; a quote-asset input would have different units. Account for fees and the minimum orderable exit size: the smallest permitted gross spot entry does not necessarily leave a fee-reduced amount large enough to close in a separate order.
For an OPEN grid, set order_grid_enabled:true, supply num_open_orders and aligned price/quantity rows. That remains one Liftx position lifecycle. Independently submitted OPEN commands create separate lifecycles even when a venue nets their exposure together.
Submit and follow the result
202:
200:
handed_off establishes the correlated durable OPEN creation. It does not certify that the exchange accepted an order or that it filled. Read the exact position and its orders, allocations and protections using position state. An accepted ID can precede the position’s first publication.
Rejection and ambiguous outcomes
An inner instrument that differs from the envelope produces HTTP400:
operator_required preserves unresolved effects and blocks blind replay. Do not infer that a failed request left every account setting unchanged.
A short uses position_side:2 only where supported. The API does not translate a generic sell signal into either short or close: choose open with the intended direction or terminate an existing position explicitly. TradingView uses the same underlying request and trading owners through its guided or advanced setup.