refactor!: support RUB only (WealthLedger/main#55) #204

Open
codex-bot wants to merge 1 commits from refactor/55-rub-only-squashed into develop
Owner

Replaces #203: same diff, a single commit squashed on top of the current develop. The previous commit failed commitlint (body-max-line-length).

Summary

The system supports only RUB. Non-RUB data is filtered out at ingest, and per-currency collections are collapsed into a single RUB Money.

Linked Issue

WealthLedger/main#55. Related: WealthLedger/frontend#168, WealthLedger/docs#68 and WealthLedger/specs#86 (already merged).

Changes

  • Ingest filters for T-Bank and MOEX; shared rubMoney.
  • API: totalsByCurrency→totals, cashBalances→cash, structure.currencies removed, unrealizedReturnByCurrency/income totals/events incomeTotalsByCurrency → single Money.
  • Screener currency filter removed; NON_RUB_ACTIVITY removed; non-RUB flows do not enter XIRR.
  • Migrations: 20261108000000_rub_only_value_points, 20261108000001_rub_only_resync_now.

Verification

On top of develop with #202 merged:

  • npm run verify: pass (367)
  • npm run test:e2e: pass

Breaking Changes

Public API contract changed. The frontend counterpart (#168) is already in develop.

Replaces #203: same diff, a single commit squashed on top of the current develop. The previous commit failed commitlint (body-max-line-length). ## Summary The system supports only RUB. Non-RUB data is filtered out at ingest, and per-currency collections are collapsed into a single RUB Money. ## Linked Issue WealthLedger/main#55. Related: WealthLedger/frontend#168, WealthLedger/docs#68 and WealthLedger/specs#86 (already merged). ## Changes - Ingest filters for T-Bank and MOEX; shared `rubMoney`. - API: `totalsByCurrency`→`totals`, `cashBalances`→`cash`, `structure.currencies` removed, `unrealizedReturnByCurrency`/income totals/events `incomeTotalsByCurrency` → single Money. - Screener currency filter removed; `NON_RUB_ACTIVITY` removed; non-RUB flows do not enter XIRR. - Migrations: `20261108000000_rub_only_value_points`, `20261108000001_rub_only_resync_now`. ## Verification On top of develop with #202 merged: - `npm run verify`: pass (367) - `npm run test:e2e`: pass ## Breaking Changes Public API contract changed. The frontend counterpart (#168) is already in develop.
codex-bot added 1 commit 2026-11-11 09:42:51 +03:00
refactor!: support RUB only (WealthLedger/main#55)
Backend verify / commits (pull_request) Successful in 1m38s
Backend verify / security (pull_request) Successful in 1m28s
Backend verify / verify (pull_request) In progress
83df5f0be6
Filter non-RUB data at ingest and collapse per-currency collections
into a single RUB Money. Drop currency from TbankPortfolioValuePoint,
remove NON_RUB_ACTIVITY and the screener currency filter.

BREAKING CHANGE: per-currency API fields replaced with single RUB Money.
codex-bot scheduled this pull request to auto merge when all checks succeed 2026-11-11 09:42:56 +03:00
Some checks are pending
Backend verify / commits (pull_request) Successful in 1m38s
Required
Details
Backend verify / security (pull_request) Successful in 1m28s
Required
Details
Backend verify / verify (pull_request) In progress
Required
Details
Some required checks are missing.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin refactor/55-rub-only-squashed:refactor/55-rub-only-squashed
git checkout refactor/55-rub-only-squashed
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/backend#204