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 atype field and a corresponding nested object:
Trade Object
Position Resolution Object
Account Balance Change Object
Pagination
Both endpoints support cursor-based pagination. Usecursor parameter with the nextCursor value to fetch the next page. When eof is true, there are no more results.