API Reference

Query Portfolio Position

Rate Limit: 20 requests per 10 seconds

Request

Field nameTypeNecessaryRemarks
symStringNTrading pair unique identifier, example: BINANCE_PERP_BTC_USDT, OKX_PERP_BTC_USDT

Respone

FieldTypeRemark
positionIdStringPosition Id
portfolioIdStringPortfolio Id
symStringTrading pair unique identifier
positionSideStringNET,One-way mode, now only support one-way mode
positionMarginStringPosition margin
positionMMStringPosition maintain margin
positionQtyStringPosition quantity(Positive means Long, Negative means Short positions), the unit for OKX is piece, for BINANCE is coin
positionValueStringPosition value
unrealizedPNLStringUnrealized PNL
unrealizedPNLRateStringUnrealized PNL rate
avgPriceStringAverage price
markPriceStringMark price
leverageStringLeverage
maxLeverageStringMax leverage
riskLevelStringRisk level
feeStringTrading fee
fundingFeeStringFunding fee
createAtStringCreate time
updateAtStringUpdate time
liqPriceStringEstimated liquidation price of position. If the data is null, it means there will be no forced liquidation
Language