moneta-reconcile

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/moneta-reconcile

/moneta-reconcile

Verify Moneta accounting integrity.
验证Moneta会计数据完整性。

Steps

步骤

  1. Load source docs from
    source/
    and parsed outputs from
    normalized/
    .
  2. Compare per-source transaction counts and totals to originals.
  3. Reconcile lots to holdings: sum lots per asset vs
    normalized/cost-basis.json
    and
    normalized/cost-basis-updated.json
    .
  4. Detect duplicate transactions by
    id
    , date+amount+source, and cross-file overlaps.
  5. Report discrepancies with file path, record id, and delta.
  1. source/
    加载原始单据,从
    normalized/
    加载解析后的输出。
  2. 核对各来源的交易数量和总计与原始数据是否一致。
  3. 对账批次与持仓情况:按资产汇总批次数据,与
    normalized/cost-basis.json
    normalized/cost-basis-updated.json
    进行比对。
  4. 通过
    id
    、日期+金额+来源以及跨文件重叠情况检测重复交易。
  5. 报告差异,包含文件路径、记录ID和差值。

Examples

示例

bash
undefined
bash
undefined

Refresh normalized data before reconciling

对账前刷新标准化数据

pnpm parse:all

```bash
pnpm parse:all

```bash

Rebuild gains before lot checks

批次检查前重新计算收益

pnpm gains
undefined
pnpm gains
undefined

References

参考文件

  • source/
  • normalized/transactions.json
  • normalized/bofa-transactions.json
  • normalized/river-transactions.json
  • normalized/strike-transactions.json
  • normalized/cashapp-transactions.json
  • normalized/robinhood-transactions.json
  • normalized/cost-basis.json
  • normalized/cost-basis-updated.json
  • normalized/river-lots.json
  • normalized/strike-lots.json
  • normalized/robinhood-lots.json
  • scripts/parse-all.ts
  • scripts/schema.ts
  • source/
  • normalized/transactions.json
  • normalized/bofa-transactions.json
  • normalized/river-transactions.json
  • normalized/strike-transactions.json
  • normalized/cashapp-transactions.json
  • normalized/robinhood-transactions.json
  • normalized/cost-basis.json
  • normalized/cost-basis-updated.json
  • normalized/river-lots.json
  • normalized/strike-lots.json
  • normalized/robinhood-lots.json
  • scripts/parse-all.ts
  • scripts/schema.ts