Open Positions
Inspect a wallet’s current outcome exposure and unrealized performance.- TypeScript
- Python
- API
Call
listPositions() on a PublicClient or SecureClient.Output: Position[]
Output: Position[]
firstEntryAt is the first acquisition time in Unix epoch milliseconds, or undefined when unrecorded. Acquisitions include buys, splits, mints, migrations, and incoming transfers.Filter Positions by Title
Narrow positions to markets whose titles contain a search term, ignoring case. This works across position statuses and when listing a market’s holders.- TypeScript
- Python
- API
Pass
title to listPositions() on the existing PublicClient or SecureClient:title accepts at most 200 Unicode characters. Empty or whitespace-only
input disables the filter. Other patterns are preserved unchanged; %
matches any sequence of characters and _ matches one character.
The paginator retains title on every page, including when resumed with
pages.from(nextCursor).Closed Positions
Review the positions a wallet has exited or that have resolved, including their realized performance.- TypeScript
- Python
- API
One method serves the whole position lifecycle: call
listPositions()
with status: PositionStatus.Closed. Closed rows keep the same Position
shape with realized economics (currentSize is a ~0 residual and
realizedPnl carries the outcome); they default to sorting by realized
PnL.Output: Position[]
Output: Position[]
Position Example
Sort Positions by Price
Rank a wallet’s holdings by current effective price to find its lowest- or highest-priced outcomes.- TypeScript
- Python
- API
Call
listPositions() on an existing PublicClient or SecureClient, using
the address from the open positions example.PositionSortBy.Price orders by currentPrice. Use SortDirection.Desc for
highest prices first. The paginator retains the selected sort on later pages.Activity History
Follow the timeline for a wallet across trades and other activity.- TypeScript
- Python
- API
Call You can narrow down the activity types using the
listActivity() on a PublicClient or SecureClient.type field:Activity is a discriminated union. The type field identifies each
variant:Output: Activity[]
Output: Activity[]
Notifications
Notifications provide a short-lived record of unread events for the connected account. The CLOB retains them for 48 hours.Clients authenticated with Session
Keys receive only
notifications generated by those Session Keys.
List Notifications
- TypeScript
- Python
- API
Call
fetchNotifications() on a SecureClient:Output: Notification[]
Output: Notification[]
Drop Notifications
Mark notifications as read after processing them. Dropped notifications no longer appear when you list unread notifications.- TypeScript
- Python
- API
Call
dropNotifications() on a SecureClient with the notification IDs:Portfolio Value
Read the current portfolio value for a wallet.- TypeScript
- Python
- API
Call
fetchPortfolioValue() on a PublicClient or SecureClient. It
returns a single object: the wallet’s marked portfolio value in USDC,
rounded to four decimals.Output: PortfolioValue
Output: PortfolioValue
Wallet Stats
Read a wallet’s lifetime trading statistics.- TypeScript
- Python
- API
Call
fetchUserStats() on a PublicClient or SecureClient.tradedMarketCount counts distinct markets, not fills. stats is null
for an unknown user.Wallet PnL History
Track a wallet’s cumulative profit and loss over time.- TypeScript
- Python
- API
Call The default is one day sampled hourly.
fetchUserPnl() on a PublicClient or SecureClient.points are cumulative and ordered
oldest first. Nullable amounts mean unavailable, not zero.Wallet Trading Volume
Measure a wallet’s trading volume over a selected period.- TypeScript
- Python
- API
Call
fetchUserVolume() on a PublicClient or SecureClient.volume.volume is in shares, volume.volumeUsdc is in USD, and
volume.tradeCount counts fills. Window bounds expand to whole UTC days.