Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console

Master-account equity history

Execution & Order Management (OMS)

GET

/portfolio/history

Master-account equity history

Sandbox availablegetPortfolioHistory

Daily raw-equity history for the partner master trading account only. This endpoint does not consolidate sub-accounts and is not cash-flow adjusted; deposits and withdrawals therefore affect changes in equity.

Parameters

period1M | 3M | 6M | 1Y | ALLquery

Example: 1Y

fromstringquery
tostringquery

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Response fields

accountTypeMASTER | SUBACCOUNTRequired
scopeMASTER_ACCOUNT | SUBACCOUNTRequired
subAccountIdstring
externalIdstring | null
baseCurrencyUSDRequired
timeframe1DRequired
period1M | 3M | 6M | 1Y | ALLRequired
calculationRAW_EQUITYRequired
cashFlowAdjustedbooleanRequired
methodologystringRequired
pointsobject[]Required
points[].timestampstringRequired
points[].equitynumberRequired

Total account value including cash and holdings.

points[].marketValuenumberRequired

Holdings value only.

countintegerRequired
asOfstring | null

Response codes

200Master-account daily equity points.
400Invalid period or date range.