Response
200Closed-position history. Always an empty array right now; do not read it as "never closed a position"historyobject(PxPositionHistoryItem)[]A closed-position record. The read model is not built yet so the list is always empty — the shape is already the final contract
historyIdstringRecord id
marketSlugstringnullableMarket slug
questionstringnullableMarket question
outcomestringnullableSide, A or B
outcomeLabelstringnullableDisplay label for that side
quantityE6stringnullableClosed size, as an E6 string
avgEntryE6stringnullableAverage entry price, as an E6 string
avgExitE6stringnullableAverage exit price, as an E6 string
initialMarginE6stringnullableInitial margin, as an E6 string
borrowedE6stringnullableBorrowed principal, as an E6 string
realizedPnlE6stringnullableRealized PnL, as an E6 string
closeReasonstringnullableReason the position was closed
resolutionstringnullableResolution
Switch status codes in the response example to view errors. For all codes, see the Errors page.
