Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_notifications_telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_render_cycle_summary_dashboard_text_does_not_hide_account_overview():
)

assert " - Total assets: $2,345.67" in message
assert " - Buying power: $456.78" in message
assert " - Available cash: $456.78" in message
assert " - Reserved cash: $50.00" in message
assert " - Investable cash: $406.78" in message
assert " - SOXL: $1,000.00 / 5 shares" in message
Expand Down
1 change: 1 addition & 0 deletions tests/test_rebalance_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def test_runtime_metadata_uses_platform_execution_policy_over_strategy_metadata(
"firstrade_execution_policy": {
"reserved_cash_floor_usd": 250.0,
"reserved_cash_ratio": 0.03,
"cash_only_execution": True,
},
}

Expand Down
4 changes: 2 additions & 2 deletions tests/test_runtime_broker_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def get_balances(self, _account):

portfolio = adapters.build_portfolio_port().get_portfolio_snapshot()

assert portfolio.total_equity == 1234.56
assert portfolio.total_equity == 221.0
assert portfolio.cash_balance == 200.0
assert portfolio.metadata["total_equity_source"] == "balance_total"
assert portfolio.metadata["total_equity_source"] == "cash_plus_positions"


def test_managed_portfolio_snapshot_ignores_full_account_value_balance_key():
Expand Down
Loading