PositionRequest. Guided TradingView setup saves this same request during setup. There is no separate exchange-specific webhook order language.
The safest starting point is a valid Liftx order draft and Use current order setup in integration settings. Export a request for the exact account and instrument. Adapter capabilities and current trading state still decide whether a well-formed request can execute.
Market, direction and decimal units
Spot versus derivative, dated versus perpetual, and linear versus inverse come from the chosen catalog instrument, not a
spot/futures boolean or ticker suffix. Not every account supports every direction, margin mode or order role.
A coefficient string "12345" with scale 2 means 123.45. Coefficients have at most 128 digits; scales are 0–30. Array pairs have matching lengths, and related order arrays preserve row order. Decode bounds allow at most 65,535 rows per batch, while actual adapter limits and the 256 KiB request bound are stricter operational constraints.
An input of "525497" at scale 1 with quantity_asset:"USDT" means 52,549.7 USDT. It is not 52,549.7 BTC and not a margin amount. A TradingView maximum is checked after canonical normalization: base units for spot/linear, quote-face units for inverse. It is a per-position cap, not an aggregate strategy budget or guaranteed quote-spending cap.
OPEN rows
All four OPEN arrays are required even for a market order. Preserve the exported builder convention for market price rows; a market order is not a guarantee of that indicated price. Do not infer adapter support from the numeric order-type enum alone.
Stop loss
A static SL price and a rearranged SL have different intent. Use the builder’s appropriate fields instead of assuming that a price copied from a chart remains the effective fee/fill-aware stop forever.
Take profit
A single full TP uses weight
1000000. Grid weights use percentage points × 1,000,000, so a 50/50 grid uses [50000000,50000000]. Existing protection normalization handles this distinction. Do not reinterpret a single full TP as a 1% close.
For rearranged TP, tp_pnls measures positive price distance from fee-aware breakeven, multiplied by 1,000,000 and bounded to 100,000,000 (100%). It is not leveraged ROI. Liftx sizes protection against actual exposure; zero builder quantity placeholders do not mean the intended exit is zero.
SLx modes
slx_enabled is required. SLx is owned by Liftx once configured; the strategy does not need to send each trailing tick.
Do not enable both trigger families in one request. Feature applicability, positive distances and reference-price constraints are validated by the existing protection logic. Enabling every boolean is not a valid “maximum functionality” request.
Exact order amendments
order_amendments contains the current slot_id, exact physical Liftx order_id UUID, and paired price_atomic/price_scale and/or quantity_atomic/quantity_scale. A venue order ID is not interchangeable with the Liftx UUID. Slot identity alone cannot safely identify a replaced physical order generation.
Use the current modification publication. Removing a row or slot from the complete intended configuration can request cancellation; preserving its exact identity expresses continuity. Read modification before constructing a request.
Complete illustrative derivative request
This request uses a fictitious link and instrument and fixed synthetic quantities. It demonstrates the shape, not valid live venue configuration, position sizing advice or an immediately executable strategy.Modification boundaries
API MODIFY requires an outerexpected_revision. Preserve immutable direction, margin mode, spot settlement and current row identities. Do not submit the original OPEN request after fills or manual changes.
TradingView capped modification preserves OPEN rows; use the direct API for supported OPEN amendments. No group modification exists because positions can have different fills, slots and generations. Pine cannot retrieve the current Liftx state or read webhook responses; state-dependent changes need a controller using the API and streams.