Summary
The wallet holdings response needs a total_portfolio_value field that sums key_balance × current_price across all entries. This calculation should live in a shared helper so it can be reused across the holdings endpoint and any future summary endpoints.
Scope
- Add a pure helper function that accepts an array of holding entries and returns the summed total value
- Use the helper in the holdings endpoint response serializer
- Add unit tests for the helper covering: single entry, multiple entries, all zero prices
Acceptance Criteria
Coordinate on Telegram
Summary
The wallet holdings response needs a
total_portfolio_valuefield that sumskey_balance × current_priceacross all entries. This calculation should live in a shared helper so it can be reused across the holdings endpoint and any future summary endpoints.Scope
Acceptance Criteria
total_portfolio_valuefieldCoordinate on Telegram