Show realized trade PnL in Android app

This commit is contained in:
Codex
2026-06-29 21:06:51 +03:00
parent fe276d95ff
commit 9f47c04235
8 changed files with 227 additions and 10 deletions
+3
View File
@@ -27,6 +27,9 @@ def test_paper_broker_buy_and_sell_records_trade(make_settings, tmp_path) -> Non
assert trade.side == "SELL"
assert len(broker.open_positions()) == 0
assert storage.recent_trades(limit=10)
summary = storage.closed_trade_summary()
assert summary["trades"] == 1
assert summary["net_pnl"] == round(trade.net_pnl, 6)
def test_paper_broker_limits_fast_entries_per_minute(make_settings, tmp_path) -> None: