Monitoring Combined Balances and Marked Asset Value Across Exchanges
Summary
This utility tracks balances across configured exchanges and converts held assets into a combined net asset value using each exchange’s latest ticker price. It adds available and frozen cash balances, values available and frozen holdings at the last price, and aggregates holdings by currency for a status report. To reduce redundant logging, it records a new portfolio value only when the measured cash balance or currency quantities change.
The document describes monitoring plumbing rather than a trading signal or strategy, but it illustrates a basic method for observing a multi-exchange portfolio over time. Its output depends on successful account and ticker retrieval, with retries after failures. The valuation uses the latest reported price and truncates values to three decimal places, so it can miss smaller changes and does not account for fees, liabilities, conversion costs, or differences in pricing across venues. It therefore provides a simple tracking curve, not a complete measure of executable portfolio value or investment performance.
Key ideas
- The utility aggregates cash and holdings from multiple configured exchange accounts.
- It marks holdings to the latest ticker price and adds that value to cash balances.
- It logs a portfolio update only when cash or tracked currency quantities change.
- Values are truncated to three decimal places, and the method omits fees and other valuation frictions.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.