Cancel All TP/SL
AI-generatedSummary
Fetch all futures positions for the selected product type and margin coin. Despite its name, this operation does not cancel any take-profit or stop-loss orders.
Inputs
- environmentOverride — Choose the credential environment (default), Live, or Demo. Demo maps the product type to its S-prefixed equivalent; a missing credential environment defaults to Demo.
- productType — Select USDT-FUTURES (default), COIN-FUTURES, or USDC-FUTURES to query.
- marginCoin — Margin coin used in the positions query. Defaults to USDT.
- symbol — Displayed as an optional symbol filter, but ignored by this operation.
- holdSide — Offers Both (default), Long, or Short, but is ignored by this operation.
Output shape
One record per input item containing environment and symbols.
environment is DEMO or LIVE. symbols contains the API's full positions data, despite its field name; it is not reduced to symbol strings. API errors stop execution unless Continue On Fail is enabled, which returns an error record for the affected item.