Show realized trade PnL in Android app
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user