Skip to content

Get market positions

GET /v1/market-positions

Server: https://data.openfish.fun (port 3003)

Tags: Core

Lists every position in a specific market across all participants. Includes PnL metrics, sorting, pagination, and profile enrichment (display name and avatar).


NameInTypeDefaultDescription
marketquerystringRequired. Condition ID
userquerystringNarrow results to a single wallet address
statusquerystringopenPosition status. One of: open, closed
sortByquerystringSIZESort field. One of: SIZE, CASHPNL, AVGPRICE, CURPRICE
sortDirectionquerystringDESCSort direction. One of: ASC, DESC
limitqueryinteger50Max results (max 500)
offsetqueryinteger0Pagination offset

200 — A JSON array of MarketPosition objects.

[
{
"proxyWallet": "0xabc...",
"asset": "token123",
"conditionId": "0xdef...",
"size": "100.0",
"avgPrice": "0.55",
"curPrice": "0.70",
"cashPnl": "15.0",
"outcomeIndex": 0,
"outcome": "Yes",
"name": "Alice",
"profileImage": "https://..."
}
]
FieldTypeDescription
proxyWalletstringUser wallet address
assetstringToken ID
conditionIdstringMarket condition ID
sizestringPosition size (decimal string)
avgPricestringAverage entry price
curPricestringCurrent market price
cashPnlstringUnrealized PnL in USDC
outcomeIndexintegerOutcome index (0 or 1)
outcomestringOutcome label (e.g. “Yes”, “No”)
namestring?User display name (from profile, omitted if null)
profileImagestring?User profile image URL (omitted if null)

Terminal window
curl "https://data.openfish.fun/v1/market-positions?market=0xdef123...&sortBy=SIZE&limit=20"