Change Account PositionMode

Mandatory to cancel all posted orders and close all existing positions. Unable to change PositionMode with existing orders/positions.

Permission

  • Applies to both primary user and trading portfolio's API Key.
  • Permission: TRADE.

Rate Limit

  • 50 requests per 10 seconds.

Request

NameTypeMandatoryDescription
exchangeTypeStringYExchange, Binance / OKX
positionModeStringYNET / BOTHNET is one way (buy & sale)mode; BOTH is hedge (long/short) mode.

NET means single way, also means buy & sale mode.

BOTH means hedge way, also means both mode or long/short mode.

Language