Skip to main content

Positions

GET /v1/account/positions
Returns your current positions with live market values and unrealized P&L.

Query Parameters

ParameterTypeDefaultDescription
statusstringOPENFilter: OPEN or CLOSED
market_idstringFilter by condition_id
limitint50Max results (1–500)
offsetint0Pagination offset

Request

curl -H "X-API-Key: $API_KEY" \
  "https://api.polysimulator.com/v1/account/positions?status=OPEN"

Response

[
  {
    "id": 1,
    "market_id": "0x1a2b3c...",
    "outcome": "Yes",
    "quantity": "10.0",
    "avg_entry_price": "0.65",
    "current_price": "0.70",
    "market_value": "7.00",
    "unrealized_pnl": "0.50",
    "status": "OPEN"
  }
]
FieldDescription
quantityNumber of shares held
avg_entry_priceVolume-weighted average entry price
current_priceLatest market price for this outcome
market_valuequantity × current_price
unrealized_pnlmarket_value - (quantity × avg_entry_price)

Position Lifecycle


Next Steps