Skip to content

Release: develop -> main#3298

Merged
TaprootFreak merged 2 commits intomainfrom
develop
Feb 28, 2026
Merged

Release: develop -> main#3298
TaprootFreak merged 2 commits intomainfrom
develop

Conversation

@github-actions
Copy link

Automatic Release PR

This PR was automatically created after changes were pushed to develop.

Commits: 1 new commit(s)

Checklist

  • Review all changes
  • Verify CI passes
  • Approve and merge when ready for production

…3297)

fast-xml-parser parses purely numeric AcctSvcrRef values (e.g.
20110649015) as JavaScript numbers. Passing a number to a varchar(256)
column causes tedious to throw "Invalid string". Wrap both AcctSvcrRef
lookups in toString() to ensure the value is always a string.
* fix: include all custody assets in portfolio history chart

The portfolio history chart was showing incorrect values (e.g. 0.01 CHF
instead of 25'933 CHF) because getUserCustodyHistory() only considered
assets from completed orders when fetching price history. Assets acquired
through receives or other mechanisms without matching orders were missing.

Additionally, order balance changes were only applied inside the price
reduce loop, so volumes from order days without price records were lost.

Changes:
- Include assets from custody_balance table (with balance > 0) in the
  price query, not just assets from orders
- Decouple order volume processing from price iteration by applying all
  cumulative order changes up to each price day before calculating value

* fix: use order updated date

---------

Co-authored-by: David May <david.leo.may@gmail.com>
@TaprootFreak TaprootFreak merged commit 39d7040 into main Feb 28, 2026
11 of 12 checks passed
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