Serve priced open interest for active unarchived market listings

This commit is contained in:
2026-12-03 12:39:03 +08:00
parent e26ba27a24
commit 2a62f1812a
16 changed files with 301 additions and 78 deletions
+13
View File
@@ -43,6 +43,19 @@ pub(crate) fn apply(
}
Ok(receipt)
}
Command::SetMarketVisibility {
market,
active,
archived,
} => {
identifier(&market)?;
tx.execute(
"INSERT INTO market_visibility(market,active,archived) VALUES(?,?,?)
ON CONFLICT(market) DO UPDATE SET active=excluded.active,archived=excluded.archived",
params![market,active,archived],
)?;
Ok(json!({"market":market,"active":active,"archived":archived}))
}
Command::TickSizeChange(change) => change.apply(tx, request_id),
Command::Event(event) => event.save(tx),
Command::RescheduleSports {