交易員帶單倉位匯總
交易員帶單倉位匯總
HTTP 請求
GET /cloud/contract/v3/private/copytrading/position/list
請求示例
參數 | 是否必須 | 類型 | 說明 |
---|---|---|---|
symbol | false | string | 合約類型 |
響應示例
參數 | 類型 | 說明 |
---|---|---|
list | array | Object |
> symbol | string | 合約類型 |
> side | string | 方向 |
> size | string | 倉位數量 |
> positionValue | string | 倉位價值 |
> entryPrice | string | 平均入場價 |
> liqPrice | string | 強平價格 |
> bustPrice | string | 破產價格 |
> markPrice | string | 標記價格 |
> leverage | string | 逐倉模式下, 值為用戶設置的杠桿;全倉模式下,值為當前風險限額下最大杠桿 |
> isIsolated | boolean | 是否逐倉,true-逐倉 false-全倉 |
> positionMargin | string | 倉位保證金 |
> occClosingFee | string | 倉位占用的平倉手續費 |
> occFundingFee | string | 倉位size和當前資金費率預占用資金費用 |
> cumRealisedPnl | string | 累計已結盈虧 |
> freeQty | string | 可平倉位數量(如果您有多頭頭寸,free_qty 為負數。反之亦然) |
> unrealisedPnl | string | 未結盈虧 |
> positionIdx | string | 倉位標識, 用於在不同倉位模式下標識倉位:0-單向持倉; 1-雙向持倉Buy; 2-雙向持倉Sell |
> createdTime | string | 創建時間 |
> updatedTime | string | 更新時間 |
請求示例
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'
響應示例
{
"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"
}
]
}
}