Response
200List of positionspositionsobject(PxPosition)[]Every position, unpaginated
marketIdstringEngine market id — this is the one to place orders with
marketSlugstringnullableMarket slug
questionstringnullableMarket question
outcomestringPosition side, A or B
outcomeLabelstringnullableDisplay label for that side
resolutionstringnullableResolution outcome; null while unresolved
statusstringnullableMarket state
quantityE6stringPosition size, as an E6 string
reservedE6stringThe part of it reserved by resting orders, as an E6 string
costBasisE6stringCost basis. The read model is not built yet, so this is currently zero
realizedPnlE6stringRealized PnL. The read model is not built yet, so this is currently zero
avgEntryE6stringAverage entry price. The read model is not built yet, so this is currently zero
lastPriceE6stringnullableLatest mark price, as an E6 string; null when unavailable — do not treat it as 0
priceStatestringnullableHow much to trust the mark price; judging staleness is the caller's job
markUpdatedAtMsstringnullableTime of the mark price, as a millisecond string
midPriceE6stringnullableBook mid price, as an E6 string
marketValueE6stringnullableMarket value, as an E6 string
unrealizedPnlE6stringnullableUnrealized PnL, as an E6 string
roeBpsstringnullableReturn on equity, in basis points
initialMarginE6stringInitial margin, as an E6 string; zero when nothing is borrowed
borrowedE6stringBorrowed principal tied up by this position, as an E6 string; zero when nothing is borrowed
liquidationPriceE6stringnullableLiquidation price, as an E6 string; null when nothing is borrowed
bankruptcyPriceE6stringnullableBankruptcy price, as an E6 string; null when nothing is borrowed
distanceToLiqBpsstringnullableDistance to the liquidation price, in basis points
openedAtMsstringnullableTime the position was opened, as a millisecond string
Switch status codes in the response example to view errors. For all codes, see the Errors page.
