Flash Close Positions
AI-generatedSummary
Close open positions on Bitget Futures contracts.
Inputs
- environmentOverride — Selects the API environment (credential, live, demo) to use for the request.
- productType — Specifies the futures product type (USDT-FUTURES, COIN-FUTURES, USDC-FUTURES).
- marginCoin — Sets the margin coin (e.g., USDT) for the position.
- symbol — Optional trading pair symbol to close positions for; defaults to all symbols.
- holdSide — Filter to close positions of a specific side (long, short, or both).
Output shape
array of result objects (one per input item)
Each result object contains
environment,productType,status, anddata; on error anerrorfield is present. The array length matches the number of input items.
Examples
Example 1: Close all long positions in BTC-USD contract on live environment
environmentOverride=Live&productType=COIN-FUTURES&marginCoin=USDT&symbol=BTC-USD&holdSide=long