PositionResp
marginTypestring
仓位的保证金模式(例如 CROSS 或 ISOLATED)。
可选值: [CROSS, SPOT, ISOLATED, LEAD, COPY, ALL]
entryPricedouble
仓位的平均开仓价格。
markPricedouble
用于对仓位估值的最新标记价格。
symbolstring
仓位的市场交易对(例如 BTC-PERP)。
sidestring
仓位方向(BUY 为多头,SELL 为空头)。
可选值: [BUY, SELL]
notionalValuedouble
仓位的名义价值,以结算币种计。
settleWithAssetstring
用于结算此仓位盈亏和手续费的资产。
unrealizedProfitLossdouble
按最新标记价格计算的未实现盈亏。
totalMaintenanceMargindouble
当前仓位所需的维持保证金总额。
sizeint32
仓位数量(合约张数)。
liquidationPricedouble
基于当前保证金和标记价格估算的强平价格。
isolatedLeveragedouble
仓位上配置的逐仓杠杆;仅在逐仓保证金模式下适用。
timestampint64
仓位快照的服务器时间戳,单位为自 epoch 起的毫秒数。
takeProfitOrder object
当前附加到仓位上的止盈触发(如有)。
orderIdstring
sidestring
可选值: [BUY, SELL]
triggerPricedouble
triggerUseLastPriceboolean
stopLossOrder object
当前附加到仓位上的止损触发(如有)。
orderIdstring
sidestring
可选值: [BUY, SELL]
triggerPricedouble
triggerUseLastPriceboolean
positionModestring
仓位模式:ONE_WAY(净仓位)或 HEDGE(独立的多空仓位)。
可选值: [ONE_WAY, HEDGE, ISOLATED]
positionDirectionstring
对冲模式下的仓位方向(LONG 或 SHORT)。
可选值: [LONG, SHORT]
positionIdstring
仓位的唯一标识符。
walletNamestring
持有该仓位的钱包名称。
currentLeveragedouble
当前实际应用于仓位的有效杠杆。
minimumRequiredMargindouble
以当前数量持有该仓位所需的最小起始保证金。
PositionResp
{
"marginType": "CROSS",
"entryPrice": 0,
"markPrice": 0,
"symbol": "string",
"side": "BUY",
"notionalValue": 0,
"settleWithAsset": "string",
"unrealizedProfitLoss": 0,
"totalMaintenanceMargin": 0,
"size": 0,
"liquidationPrice": 0,
"isolatedLeverage": 0,
"timestamp": 0,
"takeProfitOrder": {
"orderId": "string",
"side": "BUY",
"triggerPrice": 0,
"triggerUseLastPrice": true
},
"stopLossOrder": {
"orderId": "string",
"side": "BUY",
"triggerPrice": 0,
"triggerUseLastPrice": true
},
"positionMode": "ONE_WAY",
"positionDirection": "LONG",
"positionId": "string",
"walletName": "string",
"currentLeverage": 0,
"minimumRequiredMargin": 0
}