Investment account valuations
A balance change on an investment account can't tell you whether you put money in or the market moved. Valuations separate the two:
- Deposits and withdrawals stay ordinary transactions and transfers. They are the account's contributions (net of withdrawals).
- A valuation is a dated statement of what the account was worth at the close of a day. It never creates a transaction or changes the ledger.
- Growth is the account's value less the money put in.
There are no holdings, tickers or price feeds: you enter the value, usually from a statement. Returns are a growth amount and a simple percent; there is no time-weighted return or XIRR.
| Operation | Method and path | Scope |
|---|---|---|
create-account-valuation | POST /v1/workspaces/{workspaceID}/accounts/{accountID}/valuations | accounts:write |
list-account-valuations | GET /v1/workspaces/{workspaceID}/accounts/{accountID}/valuations | accounts:read |
delete-account-valuation | DELETE /v1/workspaces/{workspaceID}/accounts/{accountID}/valuations/{valuationID} | accounts:write |
get-account-investment-summary | GET /v1/workspaces/{workspaceID}/accounts/{accountID}/investment-summary | accounts:read |
get-account-investment-target | GET /v1/workspaces/{workspaceID}/accounts/{accountID}/investment-target | accounts:read |
set-account-investment-target | PUT /v1/workspaces/{workspaceID}/accounts/{accountID}/investment-target | accounts:write |
delete-account-investment-target | DELETE /v1/workspaces/{workspaceID}/accounts/{accountID}/investment-target | accounts:write |
Amounts are in the workspace's minor unit, like every other amount, and come
back as { "minor": ..., "display": ... }.
Record a valuation
POST /v1/workspaces/{workspaceID}/accounts/{accountID}/valuations
{ "date": "2026-02-01", "amountMinor": 120000 }
dateis the day the value applies to, at the close of the day. It can be today or in the past, including before the account's transactions. A future date is rejected.amountMinoris the market value. It can't be negative.- Recording a second value for the same day is allowed; the later entry is the one every figure uses.
- Valuations are not edited. To correct one, delete it and record it again.
The response is the valuation: id (aval_…), accountId, date, value and
createdAt. Members who can edit workspace data can create and delete
valuations; every member can read them. Each create and delete is written to the
workspace audit log with the account, the date and the amount.
How the value is worked out
For a day D, the account's value is the latest valuation dated on or before D, plus the contributions made after that valuation up to D. A deposit after a valuation therefore counts once, as a contribution, and isn't also counted as growth.
Example: the account holds 1,000.00 of contributions, a valuation on 1 February says 1,200.00, and 500.00 is deposited on 1 March. The value is 1,700.00, the net contributions are 1,500.00 and the growth is 200.00 (13.33%).
An account with no valuation behaves exactly as before: its value is its balance.
Account summary
get-account-investment-summary returns, as of today in the workspace time zone:
| Field | Meaning |
|---|---|
netContributions | Opening balance and deposits less withdrawals, from the account's transactions and transfers. |
latestValuation | { date, value } of the latest valuation on or before today. Absent until one exists. |
currentValue | The latest valuation plus contributions since. Absent until a valuation exists. |
growthAmount | currentValue less what was put in over the window. Absent while it can't be worked out. |
growthPercent | Growth as a percent of what was put in, rounded to two decimals. Absent when that base is zero or less. |
Add ?since=YYYY-MM-DD to measure growth from the close of that day. The
response then also carries since and startValue, and the base is the start
value plus the contributions made after since. That needs a valuation on or
before since; without one, startValue, growthAmount and growthPercent
are absent. A malformed or future since returns 422.
Investment target and plan
An investment account can have one target: a value to reach, the date to
reach it by, and an optional yearly return you assume. It is planning data
only. It never moves money, creates a transaction or touches a budget category.
GET .../investment-summary then carries a plan with the progress and what
to put in each month. The plan is plain arithmetic from the target and the
return you typed. It is not a forecast of what the account will earn.
Set, read and remove the target
PUT /v1/workspaces/{workspaceID}/accounts/{accountID}/investment-target
{
"expectedVersion": 0,
"targetMinor": 5000000,
"targetDate": "2030-12-31",
"assumedAnnualReturnBasisPoints": 500
}
| Field | Meaning |
|---|---|
expectedVersion | 0 creates the target and needs the account to have none. Any other value must be the target's current version, and replaces it. A mismatch returns 409 with the code STALE_INVESTMENT_TARGET_VERSION. |
targetMinor | The value to reach, in the workspace's minor unit. Above zero. |
targetDate | The day to reach it by (YYYY-MM-DD). Must be after today in the workspace time zone. A stored date can pass later; the plan then reports date_passed. |
assumedAnnualReturnBasisPoints | Optional. The yearly return in basis points, 0 to 2500 (100 is 1%). Leave it out to plan without growth. |
PUT is a full replacement, so a replace that leaves the return out clears it.
The response, and GET, return accountId, target ({ minor, display }),
targetDate, assumedAnnualReturnBasisPoints (absent when none), version,
createdAt and updatedAt. GET on an account with no target returns 404.
DELETE returns 204 and removes the target and the plan; valuations and
balances are untouched.
Only investment accounts take a target; the three operations return 422 for
any other account type. If an account's type is changed away from investment,
the target is kept but every operation, and the summary, returns 422 until
it is an investment account again. Members who can edit workspace data can set
and remove a target, and every member can read it. Each set and removal is
written to the workspace audit log with the account, the amount, the date and
the assumed return.
The plan on the summary
When the account has a target, the summary response has a plan object. It is
absent when there is no target. It ignores since: it always uses the current
value as of today in the workspace time zone.
| Field | Meaning |
|---|---|
target, targetDate | The target, as stored. |
currentValue | The same figure as the summary's currentValue. Absent when state is no_value. |
remaining | target less currentValue, never below zero. Absent when state is no_value. |
progressPercent | currentValue as a percent of target, rounded down to two decimals and kept between 0 and 100, so it reads 100 only once the target is reached. Absent when state is no_value. |
monthsRemaining | Whole calendar months from today to targetDate in the workspace time zone, at least 1. 0 once the date has passed. |
requiredMonthlyNoGrowth | What to put in each month with no growth: remaining over monthsRemaining, rounded up to the currency's minor unit. Present only while state is in_progress. |
requiredMonthlyAtAssumedReturn | The same, if the value grows at the assumed return. Present only while state is in_progress and a return was set. |
valueAloneReachesTarget | true when, at the assumed return, the current value alone grows to the target. requiredMonthlyAtAssumedReturn is then 0. |
assumedAnnualReturnBasisPoints | The assumed return, when one was set. |
state | no_value (no valuation recorded yet), reached (value at or above the target), date_passed (the date is behind us and the value is short), or in_progress. |
stale | true when the latest valuation is more than 35 days old. It applies on top of any state. |
valueAsOf, valueAgeDays | The date of the latest valuation and its age in days. Absent when state is no_value. |
The monthly amounts are level payments. With a yearly return r, the monthly growth rate is i = (1 + r)^(1/12) − 1 and, for n months, a current value V and a target T:
monthly = (T − V(1 + i)^n) × i ÷ ((1 + i)^n − 1)
At a 0% return the amount is simply (T − V) ÷ n. Money is never held in floating point: the figures are worked out with arbitrary-precision arithmetic and rounded up to the minor unit, so every client sees the same amount. If less than a month remains, n is 1.
Example: a target of 1,000.00 in 12 months, no value yet and a 5% yearly return needs 81.49 a month at the assumed return and 83.34 a month with no growth.
Net worth
Net worth and the net worth forecast report use the same value. For each period end, an investment account contributes its value rather than its ledger balance, so a deposit doesn't count twice. The balance over time and account balance forecast reports use it too. Reports that show ledger balances, such as the balance sheet and general ledger, keep showing the contributions, because that is what the ledger holds.
Only accounts that are currently investment accounts use their valuations. If an account is reclassified, its valuations stay stored but stop applying.
Errors
| Status | When |
|---|---|
422 | The account isn't an investment account (valuationRequiresAnInvestmentAccount, investmentTargetRequiresAnInvestmentAccount), the amount is negative, the date is in the future, the account is archived (create or set target), since is invalid, or a target is invalid: a value of zero or less, a date that isn't after today, or a return outside 0 to 2500 basis points. |
409 | STALE_INVESTMENT_TARGET_VERSION: expectedVersion doesn't match the stored target. The error details carry expectedVersion and currentVersion. |
403 | The caller's role can't change workspace data (create and delete, set and remove a target). |
404 | The workspace, account or valuation doesn't exist, the account has no target (GET and DELETE of a target), or it belongs to a workspace the caller can't access. |
See Errors for the response format.