Sub-account cash-flow-adjusted performance
Sub-Accounts & White-Label Retail KYC
/users/{userId}/portfolio/performance
Sub-account cash-flow-adjusted performance
getUserPortfolioPerformanceReturns daily P&L, Modified Dietz interval returns, and geometrically linked cumulative time-weighted return for one partner-owned sub-account. Completed deposits and withdrawals are treated as external cash flows. Supply an optional exchange-qualified benchmark symbol for rebased price return and excess-return comparison.
Parameters
userIdstringpathRequiredperiod1M | 3M | 6M | 1Y | ALLqueryExample: 1Y
fromstringquerytostringquerybenchmarkstringqueryOptional exchange-qualified benchmark symbol.
Example: SCOM.KE
Headers
AuthorizationstringRequiredBearer sk_sandbox_<your_key> for sandbox requests.
Response fields
accountTypeMASTER | SUBACCOUNTRequiredscopeMASTER_ACCOUNT | SUBACCOUNTRequiredsubAccountIdstringexternalIdstring | nullbaseCurrencyUSDRequiredtimeframe1DRequiredperiod1M | 3M | 6M | 1Y | ALLRequiredcalculationDAILY_MODIFIED_DIETZ_LINKED_TWRRequiredcashFlowAdjustedbooleanRequiredmethodologystringRequiredbenchmarkunionRequiredsummaryobjectRequiredsummary.startEquitynumberRequiredsummary.endEquitynumberRequiredsummary.netCashFlownumberRequiredsummary.totalPnlnumberRequiredsummary.totalReturnnumberRequiredsummary.benchmarkReturnnumber | nullRequiredsummary.excessReturnnumber | nullRequiredpointsobject[]Requiredpoints[].timestampstringRequiredpoints[].equitynumberRequiredpoints[].marketValuenumberRequiredpoints[].netCashFlownumberRequiredSigned completed external cash flow during the interval.
points[].dailyPnlnumberRequiredEnd equity minus start equity minus net cash flow.
points[].dailyReturnnumber | nullRequiredModified Dietz return for the snapshot interval.
points[].cumulativeReturnnumberRequiredGeometrically linked time-weighted return from the first point.
points[].benchmarkReturnnumber | nullRequiredRebased benchmark price return when requested.
points[].excessReturnnumber | nullRequiredcumulativeReturn minus benchmarkReturn.
countintegerRequiredasOfstring | nullResponse codes
200Cash-flow-adjusted sub-account performance.400Invalid period404Sub-account or benchmark symbol not found.