Submit a trading command
Complete OPEN, MODIFY and TERMINATE requests, acceptance receipts and admission errors.
202 Accepted; an identical retry returns 200 OK with the current receipt for the original command.
Headers and request rules
positions:open, positions:modify or positions:terminate for the corresponding action. Pro or an eligible trial is required. This endpoint accepts one JSON object up to 256 KiB, with exact case-sensitive field names and no duplicate or unknown keys. Compressed bodies are unsupported. Decimal coefficients are strings; do not convert money through binary floating-point.
client_position_id, position_started_at, source_instance_id, sequence, binding_revision) from API commands. Optional inactive fields do not need placeholder values. request:null is not a TERMINATE request.
OPEN: limit entry with SL, SLx and TP
All examples on this page use a fictitious account link17, 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.
0.001 BTC limit entry at 70,000 USDT, static SL at 68,600, price-trigger trailing SLx, and a full-position virtual-limit TP at 72,100. SLx activation, indent and step are percentage points times 1,000,000: 1%, 0.5% and 0.25%. TP weight 1000000 means one full TP; its zero quantity placeholder is sized by the existing protection owner from actual exposure. See OPEN for market/spot differences and catalog sizing.
New acceptance: HTTP 202
MODIFY: retain rows and adjust protection
The next request assumes a fresh publication with revision7 and exactly the OPEN/TP rows and synthetic slot IDs shown below. It moves the static SL to 69,300, disables SLx and retains the OPEN and TP configuration. This is a complete request, not a patch. Do not reuse these assumed rows after fills or a manual change.
TERMINATE: cancel pending work or close exposure
Admission errors versus execution outcomes
These are errors from this HTTP submission, with the exact integration error envelope. HTTP409 Conflict, if a known client ID is reused with changed intent:
400 Bad Request, if API MODIFY omits the outer revision:
INVALID_JSON (400), SCOPE_MISMATCH (400), SCOPE_DENIED (403), STALE_COMMAND (409), PENDING_CAPACITY (429), and ADMISSION_UNAVAILABLE (503). An acceptance commit whose result is unknown returns ACCEPTANCE_UNCERTAIN (503): retry the exact saved identity and payload, not a newly timestamped command.
After 202, execution errors appear in the receipt, not in a second HTTP submission response. For example, an otherwise valid modification with no earlier effects can later be rejected with POSITION_REVISION_CONFLICT; uncertain side effects instead remain operator_required. A receipt GET still returns HTTP 200 for either state. See receipt states and recovery.
Submit a reviewed file
Authorizations
Body
Immutable namespace+client ID; lifespan <=300s. Open omits position_id; modify/terminate require it. Modify requires expected_revision; terminate omits request. Open/modify require request. Identical retries return original receipt, changed payload is 409.
Response
Identical existing command
Durable command receipt, never a fill/completion assertion. Terminal request fields correlate a durable termination owner handoff. Terminal arm writes kind/sequence while retaining dispatching; owner return or startup canonical evidence advances handed_off. Group parent position_id is null. Precedence is operator_required, dispatching, accepted, then homogeneous resolved state or partial. Zero-target parent is execution_observed. Counts and child states do not prove exposure is flat.