API product catalogSub-Accounts & White-Label Retail KYC
Sub-account equity history
Sub-Accounts & White-Label Retail KYC
GET
/users/{userId}/portfolio/history
Sub-account equity history
Sandbox available
getUserPortfolioHistoryDaily raw-equity history for one sub-account owned by the authenticated partner. Values include wallet cash and holdings but are not cash-flow adjusted, so they must not be presented as investment P&L.
Parameters
userIdstringpathRequiredperiod1M | 3M | 6M | 1Y | ALLqueryExample: 1Y
fromstringquerytostringqueryHeaders
AuthorizationstringRequiredBearer sk_sandbox_<your_key> for sandbox requests.
Response fields
accountTypeMASTER | SUBACCOUNTRequiredscopeMASTER_ACCOUNT | SUBACCOUNTRequiredsubAccountIdstringexternalIdstring | nullbaseCurrencyUSDRequiredtimeframe1DRequiredperiod1M | 3M | 6M | 1Y | ALLRequiredcalculationRAW_EQUITYRequiredcashFlowAdjustedbooleanRequiredmethodologystringRequiredpointsobject[]Requiredpoints[].timestampstringRequiredpoints[].equitynumberRequiredTotal account value including cash and holdings.
points[].marketValuenumberRequiredHoldings value only.
countintegerRequiredasOfstring | nullResponse codes
200Sub-account daily equity points.400Invalid period or date range.404Sub-account not found or not owned by this partner.