Convert NO positions and conserve collateral across fixed negative-risk groups

This commit is contained in:
2026-12-03 04:41:35 +08:00
parent dd3e563a48
commit b2b7fc4610
12 changed files with 329 additions and 5 deletions
+2
View File
@@ -12,6 +12,7 @@ mod cancellation;
mod command;
mod ledger;
mod market;
mod neg_risk;
mod portfolio;
mod resident;
mod resolution;
@@ -73,6 +74,7 @@ impl Exchange {
"orders",
"fills",
"paired_fills",
"neg_risk_groups",
] {
let mut stmt = tx.prepare(&format!("SELECT * FROM {table} ORDER BY rowid"))?;
let names: Vec<String> =