Portfolios

Create and manage RapidX Portfolios, and read their equity, margin and asset breakdown. Each Portfolio is an independent trading unit with its own assets, risk profile and API credentials.

A Portfolio is identified by a 16-digit portfolioId.

⚠️

Some endpoints return portfolioId as a JSON string and others as a number. Always treat it as an opaque string and never round-trip it through a floating-point type — 16-digit values sit close to the 2^53 limit where JavaScript's Number loses precision.

For how Portfolios relate to Funding and DMA accounts, see Accounts System.