get https://api.connex.trade/api/v1/trading/availableClose
Query the max position size available to close
Permission
- Primary / Sub-Portfolio API Key:
READ
, get the max position size available to close of current portfolio
Rate Limit
- 5 requests per 1 seconds
Request
Name | Type | Mandatory | Description |
---|---|---|---|
sym | String | Y | Trading pair unique identifier , example: BINANCE_PERP_BTC_USDT, OKX_PERP_BTC_USDT |
targetPrice | String | Y | Without given targetPrice, the latest market price will be applied |
Response
Field name | Type | Remarks |
---|---|---|
sym | String | Trading pair unique identifier , example: BINANCE_PERP_BTC_USDT, OKX_PERP_BTC_USDT |
positionMode | String | Current account position Mode, NET / BOTH ,NET is one way (buy & sale)mode; BOTH is hedge (long/short) mode. |
maxPosCloseLong | String | Max Position size to close in long direction |
maxPosCloseShort | String | Max Position size to close in short direction |