Returns one row perDocumentation Index
Fetch the complete documentation index at: https://hypernode-docs.polynode.dev/llms.txt
Use this file to discover all available pages before exploring further.
(outcome_id, side_index) the wallet has ever held. Sorted by absolute current market value (biggest exposure first).
Endpoint
Query parameters
| Param | Type | Default | Description |
|---|---|---|---|
status | string | "open" | One of open (amount != 0), settled (resolved markets), all |
limit | int | 500 | Max rows (cap 2000) |
Response
| Field | Description |
|---|---|
position_kind | "long" (positive amount), "short" (negative), "flat" (zero) |
amount | Current share balance — signed |
avg_cost | Weighted-average cost basis in USDH per share |
current_mid | (top_bid + top_ask) / 2 for this side at last poll |
market_value_usdh | amount × current_mid |
unrealized_pnl_estimate | amount × (current_mid − avg_cost) |
realized_pnl | Cumulative intraday-close PnL — excludes settlement |
settlement_payout | USDH credited at resolution (only set after the market settles) |
settlement_realized_pnl | settlement_payout − (avg_cost × shares_held_at_settle) |
Use cases
- Portfolio view — render one row per position with mark-to-mid PnL.
- Risk/exposure —
Σ market_value_usdhover rows = current notional risk. - Closed-position tax/audit log —
status=settledreturns every resolved market the wallet touched, with payout and PnL.
Examples
Notes
current_midreflects the most recent allMids snapshot (poll cadence ~1s). For instantaneous quotes use/v1/markets/:id/book.- An “open” position means
amount != 0. A wallet may have BOTH a Yes and a No leg open simultaneously — those are two rows. - Cost basis uses weighted-average — Polymarket-style — not FIFO. Close-then-reopen keeps the same row (avg_cost recomputes).