Admin

List portfolios

Changed on

List all portfolios from in-memory state with filtering and sorting

get/admin/portfolios

Request

Query parameters

pageinteger

Pagination: 1-indexed page number (default: 1)

limitinteger

Pagination: items per page (default: 100, max: 1000)

sort_by'PORTFOLIO_SORT_BY_UNSPECIFIED' | 'PORTFOLIO_SORT_BY_USDC_BALANCE' | 'PORTFOLIO_SORT_BY_REALIZED_PNL' | 'PORTFOLIO_SORT_BY_POSITION_COUNT'

Sorting field (default: USDC_BALANCE)

sort_direction'SORT_DIRECTION_UNSPECIFIED' | 'SORT_DIRECTION_ASC' | 'SORT_DIRECTION_DESC'

Sorting direction (default: DESC)

is_market_makerboolean

Filter: only market makers (optional, unset = all)

with_position_onlyboolean

Filter: only portfolios with open positions

market_idstring int64

Filter: only portfolios with position in this market

address_querystring

Filter: address prefix match (case-insensitive)

Response

A successful response.

Changes