Devlog · Stonk Bot

This Week and This Month, measured honestly

  • Weekly and monthly gains now come from a daily history of each account's actual total value: ending value, minus starting value, minus deposits, plus withdrawals.
  • The first version multiplied today's holdings by old prices. That quietly ignored anything sold during the period and credited positions for weeks they weren't held. It took a careful check against the brokerage's own chart to catch.
  • History can't be invented after the fact, so a tile says "Building history…" until a snapshot old enough exists. Total Value now includes cash, and hovering over Today splits it into the regular session and after hours.
This Week and This Month, measured honestly, screenshot