Tracking Net Asset Value with Borrowed Cash and Crypto Interest
Summary
This account-monitoring script estimates net asset changes for a trading account that may borrow cash or coin. It starts from balances adjusted for frozen funds, borrowed principal, and accrued interest, then values the net coin balance using the latest ticker price. At later refreshes, it recalculates balances and estimates additional interest from the elapsed time and configured daily rates.
The display reports net assets, cash and coin balances, cumulative return, a monthly-rate estimate, and a drawdown measure. Separate timers control status refreshes and periodic notifications, while options can reset the profit log. The method assumes the configured borrow amounts and interest rates are adequate representations of liabilities; a TODO notes that borrowing data could instead be fetched directly. The excerpt shows calculations and reporting behavior but no validated accuracy comparison or trading performance evidence.
Key ideas
- Net asset value is calculated from cash plus net coin holdings marked at the latest ticker price.
- Borrowed cash and coin, along with estimated accrued interest, are deducted from account balances.
- The tool periodically reports asset changes, returns, and a drawdown estimate.
- Refresh and notification intervals are independently configurable.
- Interest estimates rely on entered borrowing amounts and rates, and the script notes that direct loan data retrieval is still a TODO.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.