Skip to main content

Get All Positions

Rate limit: 5 requests/sec/UID

Description

Returns information about all current positions with the given productType

HTTP Request

  • GET /api/v2/mix/position/all-position
Request Example
curl "https://api.bitget.com/api/v2/mix/position/all-position?productType=USDT-FUTURES&marginCoin=USDT" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json"

Request Parameters

ParameterTypeRequiredDescription
productTypeStringYesProduct type
USDT-FUTURES USDT professional futures
COIN-FUTURES Mixed futures
USDC-FUTURES USDC professional futures
SUSDT-FUTURES USDT professional futures demo
SCOIN-FUTURES Mixed futures demo
SUSDC-FUTURES USDC professional futures demo
marginCoinStringNoMargin coin, capitalized. e.g. USDT
Response Example
{
"code": "00000",
"msg": "success",
"requestTime": 21312312312321,
"data": [
{
"marginCoin": "USDT",
"symbol": "BTCUSDT",
"holdSide": "long",
"openDelegateSize": "0.01",
"marginSize": "9.6695050093373343",
"available": "0.01",
"locked": "0.09",
"total": "0.01",
"leverage": "20",
"achievedProfits": "0",
"openPriceAvg": "25000",
"marginMode": "isolated",
"posMode": "hedge_mode",
"unrealizedPL": "1",
"liquidationPrice": "24144.1124161806977798",
"keepMarginRate": "0.004",
"markPrice": "25100",
"breakEvenPrice": "24778.97",
"totalFee": "1.45",
"deductedFee": "0.388",
"takeProfit": "3",
"stopLoss": "2",
"takeProfitId": "11111111",
"stopLossId": "11111111",
"marginRatio": "0.1082149545822005",
"assetMode":"single",
"cTime": "1691382137448",
"uTime": "1691382137999"
}
]
}

Response Parameters

ParameterTypeDescription
>symbolStringTrading pair name
>marginCoinStringMargin coin
>holdSideStringPosition direction
long: long position
short: short position
>openDelegateSizeStringAmount to be filled of the current order (base coin)
>marginSizeStringMargin amount (margin coin)
>availableStringAvailable amount for positions (base currency)
>lockedStringFrozen amount in the position (base currency)
>totalStringTotal amount of all positions (available amount + locked amount)
>leverageStringLeverage
>achievedProfitsStringRealized PnL(exclude the funding fee and transaction fee)
>openPriceAvgStringAverage entry price
>marginModeStringMargin mode
isolated: isolated margin
crossed: cross margin
>posModeStringPosition mode
one_way_mode positions in one-way mode
hedge_mode positions in hedge-mode
>unrealizedPLStringUnrealized PnL
>liquidationPriceStringEstimated liquidation price
If the value <= 0, it means the position is at low risk and there is no liquidation price at this time
>keepMarginRateStringTiered maintenance margin rate
>markPriceStringMark price
>marginRatioStringMaintenance margin rate (MMR), 0.1 represents 10%
>breakEvenPriceStringPosition breakeven price
>totalFeeStringFunding fee, the accumulated value of funding fee during the position,The initial value is empty, indicating that no funding fee has been charged yet.
>takeProfitStringTake profit price
>stopLossStringStop loss price
>takeProfitIdStringTake profit order ID
>stopLossIdStringStop loss order ID
>deductedFeeStringDeducted transaction fees: transaction fees deducted during the position
>cTimeStringCreation time, timestamp, milliseconds
The set is in descending order from the latest time.
>assetModeStringsingle : single asset mode
union multi-Assets mode
>uTimeStringLast updated time, timestamp, milliseconds

How was your Reading Experience with us?