shokollm 6c39e4e89d fix: correctly update cash balance when selling
When selling, the sale proceeds (quantity * price) are now added to current_balance.
This ensures:
- Cash decreases when buying
- Cash increases when selling (including stop loss / take profit)
- Portfolio P&L is calculated correctly
2026-04-12 07:24:49 +00:00
Description
Research and documentation repository
1.6 MiB
Languages
Python 63%
Svelte 30.2%
TypeScript 6.2%
Shell 0.3%
JavaScript 0.2%