Skip to main content
GET
/
v1
/
positions
/
fetch_positions
Fetch positions
curl --request GET \
  --url https://github.com/openpx-trade/openpx/v1/positions/fetch_positions
[
  {
    "average_price": 123,
    "current_price": 123,
    "market_ticker": "<string>",
    "outcome": "<string>",
    "size": 123
  }
]
List the caller’s open positions, optionally scoped to one market_ticker.

Query Parameters

market_ticker
string

Response

Success.

average_price
number<double>
required

Volume-weighted average entry price as YES probability in [0, 1] (e.g. 0.55).

current_price
number<double>
required

Current mark price as YES probability in [0, 1] (e.g. 0.62).

market_ticker
string
required

Unified market ticker the position is held on (e.g. "KXBTCD-25APR1517").

outcome
string
required

Outcome label as published by the exchange (e.g. "Yes", "No").

size
number<double>
required

Number of contracts held (e.g. 100.0).