fix: separate trade price from realtime price
This commit is contained in:
@@ -64,10 +64,12 @@ def test_service_creates_default_account_and_computes_summary(tmp_path):
|
||||
|
||||
assert len(positions) == 1
|
||||
assert positions[0].total_quantity == 500
|
||||
assert positions[0].current_price is None
|
||||
assert positions[0].price_source == "missing"
|
||||
assert positions[0].grid_profit == Decimal("91.47")
|
||||
assert summary.cash == Decimal("98138.97")
|
||||
assert summary.market_value == Decimal("2000.00")
|
||||
assert summary.total_assets == Decimal("100138.97")
|
||||
assert summary.market_value == Decimal("0.00")
|
||||
assert summary.total_assets == Decimal("98138.97")
|
||||
|
||||
|
||||
def test_service_validates_lot_size_and_available_sell_quantity(tmp_path):
|
||||
|
||||
Reference in New Issue
Block a user