Track prediction-market parity and expose outcome display quotes

This commit is contained in:
2026-12-03 03:39:48 +08:00
parent 9708d701c2
commit 8116c8ce8b
4 changed files with 78 additions and 1 deletions
+4 -1
View File
@@ -30,7 +30,10 @@ impl Exchange {
}
pub fn execute(&mut self, payload: Value) -> Result<Value> {
if matches!(payload["op"].as_str(), Some("catalog" | "history")) {
if matches!(
payload["op"].as_str(),
Some("catalog" | "history" | "quote")
) {
let query: catalog::Query = serde_json::from_value(payload)?;
let tx = self.db.transaction()?;
let value = query.read(&tx)?;