Fetch Positions
List the open positions held by address across Polymarket and Opinion. Each position carries the market, outcome, share count, and average entry price.
Mark-to-market fields (current_price, current_value, unrealized_pnl) are reserved for a future release and currently return null.
NotSupported in hosted mode — for those, run a local PMXT service.Authorizations
Required when calling the hosted API directly (curl, requests, fetch). SDK users pass credentials via constructor params instead.
Path Parameters
EVM wallet address.
Response
Positions list.
Venue the position is held on. Defaults to polymarket for tokens whose source venue could not be inferred.
polymarket, opinion Outcome shares held -- the ERC-1155 (or Opinion-native) token balance held by the PMXT PreFundedEscrow on behalf of the wallet.
Current mark price in probability units [0, 1]. Always null in this release -- server-side orderbook mark-to-market is not yet batched (even with with_mtm=true).
Current mark-to-market value in USDC dollars (shares * current_price). Always null in this release for the same reason as current_price.
Human-readable outcome name (e.g. Yes), enriched from the user's recorded buy fills. null when the user has no fill history for this token in the operator DB.
Cost-basis approximation: sum(buy USDC) / sum(buy shares) across all of the user's buy fills for this token, in USDC-per-share. Ignores sells -- lot-level matching is not yet implemented. null when there are no recorded buy fills.
Always null in this release. Derivation requires lot-level matching of sell fills, which is not yet implemented.

