Reference / @getenginex/sdk-predictions / Position
Position
A user's position on one side of a market. Monetary values in cents.
Properties
avgPrice
avgPrice:
number
Average price, in cents.
createdAt?
optionalcreatedAt?:string
Creation (ISO 8601).
currentPrice
currentPrice:
number
Current price of the side, in cents.
currentValue
currentValue:
number
Current value.
eventId
eventId:
string
Event id of the market.
eventStatus
eventStatus:
EventStatus
Event status.
id
id:
string
Position id.
lastPrice
lastPrice:
number
Last traded price, in cents.
marketId
marketId:
string
Market id.
marketResolution?
optionalmarketResolution?:MarketResolution
Market outcome, when resolved.
marketResolvedAt?
optionalmarketResolvedAt?:string
When the market was resolved (ISO 8601).
marketStatus
marketStatus:
MarketStatus
Market status.
marketTitle
marketTitle:
string
Market title.
quantity
quantity:
number
Contracts.
realizedPnl
realizedPnl:
number
Realized profit or loss.
settledAt?
optionalsettledAt?:string
Settlement (ISO 8601).
settlementAmount
settlementAmount:
number
Amount paid at settlement (0 before it).
side
side:
OrderSide
Side.
status
status:
PositionStatus
Status.
totalCost
totalCost:
number
Total cost.
trades?
optionaltrades?:PositionTrade[]
Executions that make up the position (only when the gateway sends them).
unrealizedPnl
unrealizedPnl:
number
Unrealized profit or loss.
updatedAt?
optionalupdatedAt?:string
Last update (ISO 8601).