summaryrefslogtreecommitdiff
path: root/tests/FundLab.Api.Tests/RebalanceStockTests.fs
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-22 13:03:36 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-22 13:03:36 +0800
commit2dedc30358d1724f60ab646b7a24e93f3672dff1 (patch)
tree515258bf4b3e1546fdf97c481e12740c573ac7c8 /tests/FundLab.Api.Tests/RebalanceStockTests.fs
parent39965954968436911b32e774d32d3cca9527e4e2 (diff)
downloadfund-lab-2dedc30358d1724f60ab646b7a24e93f3672dff1.tar.gz
Debit available cash on manual stock and bond buys with ledger events (3d-34)
Diffstat (limited to 'tests/FundLab.Api.Tests/RebalanceStockTests.fs')
-rw-r--r--tests/FundLab.Api.Tests/RebalanceStockTests.fs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/FundLab.Api.Tests/RebalanceStockTests.fs b/tests/FundLab.Api.Tests/RebalanceStockTests.fs
index 3aed5ae..caaa7c9 100644
--- a/tests/FundLab.Api.Tests/RebalanceStockTests.fs
+++ b/tests/FundLab.Api.Tests/RebalanceStockTests.fs
@@ -69,7 +69,8 @@ type RebalanceStockTests(fixture: PostgresFixture) =
repository().CreateStockTrade(
key,
fundId,
- { InstrumentCode = code; StockName = Some "贵州茅台"; Quantity = quantity; Price = price }
+ { InstrumentCode = code; StockName = Some "贵州茅台"; Quantity = quantity; Price = price },
+ debitAvailableCash = false
)
with
| StockTradeWriteResult.StockTradeCreated _ -> ()