Skip to main content

Portfolio API

The Portfolio API provides access to user positions and trading activity history.

Endpoints

Positions

Activities

Positions Response

The positions response returns a map of market slug to position, not an array:

Position Fields

Activities Response

Activities are returned as an array with pagination:

Activity Structure

Each activity has a type field and a corresponding nested object:

Trade Object

Position Resolution Object

Account Balance Change Object

Pagination

Both endpoints support cursor-based pagination. Use cursor parameter with the nextCursor value to fetch the next page. When eof is true, there are no more results.
Real-Time Position UpdatesFor real-time position changes, use the WebSocket Private Stream with the SUBSCRIPTION_TYPE_POSITION subscription instead of polling.

Filtering Activities

Filter activities by type and market:

Sort Order

Activities can be sorted ascending or descending by time: