Skip to content

Fix contract ROI and replay on local networks - #39

Merged
ChristopherDownie merged 2 commits into
mainfrom
draft/journal-fixes
Oct 6, 2026
Merged

ChristopherDownie merged 2 commits into
mainfrom
draft/journal-fixes

Conversation

@ChristopherDownie

Copy link
Copy Markdown
Contributor

Corrects Net ROI for contract-priced trades so the trades list and detail page use the same multiplier-aware calculation. Also fixes candle replay over plain HTTP local networks by removing its dependency on crypto.randomUUID.

Fixes #34
Fixes #33

@ChristopherDownie
ChristopherDownie merged commit 7fc4140 into main Oct 6, 2026
1 check passed
on101094 added a commit to on101094/trade-journal that referenced this pull request Oct 9, 2026
Upstream LuxAlgo#39 fixed the same Net ROI bug with netReturnOnEntry (more
guards and tests). Resolve the conflicts to upstream's helper and drop
this branch's duplicate netReturnOnNotional and its test, keeping only
the CHANGELOG entry, which upstream's fix did not add.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Trades list "Net ROI" ignores the contract multiplier (futures/options show ×multiplier returns) [Report] ChartReplay under local network

1 participant