List Portfolios

Retrieve trading portfolio list under primary user.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Lists the RapidX Portfolios under the main user, including the Main Portfolio and Sub Portfolios. Each record contains the Portfolio ID, name, main/sub type, creation time and last update time.

Use this endpoint to identify a Portfolio for subsequent RapidX API calls. It returns Portfolio metadata, not balances, positions or margin information. A Portfolio is one trading unit; it is not an individual exchange venue or a DMA sub-account.

Recommended for Portfolio listing: use Get Trading Account List V2 with primeType=RAPIDX&hideDust=false. This V1 endpoint remains supported. See the migration notes below.

API key access

Requires a signed LTP Open API request with READ permission.

API key typeCan callScope
Main User Level API key (also the main Portfolio key)YesMain Portfolio and Sub Portfolios under the main user.
Sub-user Level API keyNoThis V1 endpoint supports main-user keys only.
Dedicated Sub Portfolio API keyNoThis V1 endpoint is not Portfolio-scoped.

Rate limit

3 requests per 10 seconds. This is the V1 endpoint's limit; the V2 alternative has its own rate limit.

Query parameters

All parameters are optional. Without Portfolio filters, the endpoint returns a paginated list of Portfolios under the main user.

NameTypeRequiredDescription
portfolioIdinteger (int64)NoFilter by RapidX Portfolio ID. This is the portfolioId returned by this endpoint, not a user UID or DMA account ID.
namestringNoFilter by Portfolio name. Omit it when no name filter is needed.
belongingTointegerNoFilter by Portfolio type: 0 = Main Portfolio; 2 = Sub Portfolio. Omit it to include both types.
pageintegerNoOne-based page number. Defaults to 1.
pageSizeintegerNoNumber of records per page. Defaults to 100. Use pagination to retrieve subsequent pages.

For example, belongingTo=2&page=1&pageSize=100 requests the first page of Sub Portfolios. Continue through subsequent pages when more results are available.

Response fields

Result and pagination

FieldTypeDescription
codeintegerApplication result code. 200 means success.
messagestringResult message.
dataobjectPaginated Portfolio result.
data.pageintegerCurrent page number.
data.pageSizeintegerPage size used for the result.
data.pageNumintegerTotal number of pages. This is not the current page number; use data.page for that.
data.totalSizeintegerTotal number of Portfolio records matching the filters.
data.listarrayPortfolio records on the current page.

Portfolio record: data.list[]

FieldTypeDescription
portfolioIdinteger (int64)RapidX Portfolio identifier. Preserve the full integer value when storing it or passing it to another endpoint.
namestringPortfolio name. Corresponds to accountName in Account Assets V2.
belongingTointegerPortfolio type: 0 = Main Portfolio; 2 = Sub Portfolio. This describes the Portfolio type, not its status or its assigned user.
createAtinteger (int64)Portfolio creation time, as a Unix timestamp in milliseconds.
updateAtinteger (int64)Portfolio's last update time, as a Unix timestamp in milliseconds. This is not an asset-balance snapshot time.

This V1 response uses numeric Portfolio IDs. Use a lossless integer parser or preserve IDs as strings internally; do not round identifiers through a floating-point conversion.

Moving Portfolio listing to V2

Use Get Trading Account List V2 with primeType=RAPIDX&hideDust=false, and retrieve all result pages.

V1 response fieldV2 response field
portfolioIdid (string)
nameaccountName
belongingTo = 0 / 2portfolioType = MAIN / SUB
  • Use the V2 accountFilter parameter to filter by Portfolio ID. For name or main/sub filtering, filter the returned accountName or portfolioType in your client.
  • V2 defaults to 20 records per page and supports Main User Level and Sub-user Level keys within their permitted scope. Dedicated Sub Portfolio keys are not supported.
  • V2 allows 10 requests per minute per API key.
  • V2 does not return Portfolio creation/update timestamps. Its updatedAt field is the asset snapshot time.

For balances and RapidX-specific margin or transfer-limit details, see Get All Portfolio Assets. For other V1-to-V2 query mappings, see Account Assets migration guidance.

Error responses

An unsupported API key type returns application code 2003 (permission denied), even when the HTTP status is 200. See Error codes for common authentication and request errors.

Body Params
int64

portfolio id

string

portfolio name

string

portfolio which belongs to

int32
Defaults to 1

Current page, default=1, the min value=1

int32
Defaults to 100

Page size, default=100, the max value=1000

Response

Language
LoadingLoading…
Response
Choose an example:
application/json