Skip to content

Feat/pee pea history - #3

Merged
Gamso merged 5 commits into
mainfrom
feat/pee-pea-history
Oct 19, 2026
Merged

Gamso merged 5 commits into
mainfrom
feat/pee-pea-history

Conversation

@Gamso

@Gamso Gamso commented Oct 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

Gamso and others added 5 commits October 19, 2026 19:52
make-patches.sh now diffs against WOOB_REF from the Dockerfile (no fetch needed) and writes one patch per
module, none for a module without changes. The esalia module patch also exports the operations and the unit
price history of every fund to /var/lib/kresus/esalia-history.json, and the boursedirect module gets a 60 s timeout.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…d unit prices

With PEE_HISTORY=1 the bridge sends one valuation per past date (parts held x unit price) from the first
operation on, read from esalia-history.json, once and then only the missing days. 'sure-bridge.py pee-history'
previews the curve (first and last dates, largest one-day moves, last point against today's valuation) without
contacting Sure or Kresus. The reconstruction was checked against the real positions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…a-rebuild)

The boursedirect module now writes the rows of its account history page to boursedirect-history-<account>.json, merged
across syncs. 'sure-bridge.py pea-rebuild' rebuilds the state at the start of the window backwards from today's
positions (quantity, opening average cost solved from the PRU, opening cash) and replays the operations with their
real dates. It prints a plan with --dry-run, writes only with --yes, and refuses when the PEA account in Sure is not
empty, so positions cannot be counted twice. The state is left ready for the daily differential sync.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rmations

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Gamso
Gamso merged commit 77bede6 into main Oct 19, 2026
1 check passed
@Gamso
Gamso deleted the feat/pee-pea-history branch October 27, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant