Skip to main content

Position List

Position List

HTTP Request

GET /cloud/contract/v3/private/copytrading/position/list

Request Parameters

ParameterRequiredTypeComments
symbolfalsestringSymbol

Response Parameters

ParameterTypeComments
listarrayObject
> symbolstringSymbol
> sidestringSide
> sizestringPosition qty
> positionValuestringPosition value
> entryPricestringAverage entry price
> liqPricestringLiquidation price
> bustPricestringBankruptcy price
> markPricestringMark price
> leveragestringIn Isolated Margin mode, the value is set by the user. In Cross Margin mode, the value is the max leverage at current risk level
> isIsolatedbooleantrue means isolated margin mode; false means cross margin mode
> positionMarginstringPosition margin
> occClosingFeestringPosition closing fee occupied (your opening fee + expected maximum closing fee)
> occFundingFeestringPre-occupied funding fee: calculated from position qty and current funding fee
> cumRealisedPnlstringAccumulated realised pnl (all-time total)
> freeQtystringQty which can be closed. (If you have a long position, free_qty is negative. vice versa)
> unrealisedPnlstringunrealised pnl
> positionIdxstringPosition idx, used to identify positions in different position modes:0-Single side; 1-Buy side of both side mode; 2-Sell side of both side mode
> createdTimestringCreation time (when the order_status was Created)
> updatedTimestringUpdate time

Request Example

curl --location --request GET 'https://openapi-testnet.zoomex.com/cloud/contract/v3/private/copytrading/position/list?timestamp=1689848022628&api_key=XXXXX&recv_window=5000&sign=XXXXX'

Response Example

{
"retCode": 0,
"retMsg": "success",
"result": {
"list": [
{
"symbol": "BTCUSDT",
"side": "Sell",
"size": "1",
"positionValue": "30335.7",
"entryPrice": "30335.7",
"liqPrice": "47106.80",
"bustPrice": "47228.20",
"markPrice": "30345.74",
"leverage": "25",
"isIsolated": false,
"positionMargin": "16892.5070120428.33692",
"occClosingFee": "28.33692",
"occFundingFee": "0",
"cumRealisedPnl": "2753.14804356",
"freeQty": "1",
"unrealisedPnl": "-10.04",
"positionIdx": "2",
"createdTime": "1689306525051",
"updatedTime": "1689848022747"
}
]
}
}