Skip to main content
client.data.core.getPositions surfaces the holdings for a single wallet. Results include token sizes, average price, cash/percent PnL, redeem/merge flags, and market metadata.

Request

Parameters

⚠️ Mutually exclusive filters — Provide either market or eventId, not both. The SDK throws a validation error highlighting both fields if used together.

Response

Unexpected fields are preserved via passthrough() so you can adopt new attributes without waiting for a release.

Usage example

Failure modes

  • Missing user → validation error.
  • Conflicting filters → validation error naming both market and eventId.
  • HTTP failure → HttpError with status, statusText, and body.
  • Network failure → Error("Network error: …") with the original cause.