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 eithermarketoreventId, not both. The SDK throws a validation error highlighting both fields if used together.
Response
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
marketandeventId. - HTTP failure →
HttpErrorwithstatus,statusText, andbody. - Network failure →
Error("Network error: …")with the originalcause.