Bitget Futures icon

Bitget Futures

Bitget Futures Trading Node

Flash Close Positions

AI-generated

Summary

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, and data; on error an error field 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

Links

Discussion