Expose account holdings across reservation and redemption states

This commit is contained in:
2026-12-03 04:01:23 +08:00
parent 4a9b696644
commit 3bff1c0bc3
7 changed files with 207 additions and 2 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ mod book;
mod command;
mod ledger;
mod market;
mod portfolio;
mod resident;
use resident::Books;
@@ -33,7 +34,7 @@ impl Exchange {
pub fn execute(&mut self, payload: Value) -> Result<Value> {
if matches!(
payload["op"].as_str(),
Some("catalog" | "history" | "quote" | "book" | "open_orders")
Some("catalog" | "history" | "quote" | "book" | "open_orders" | "positions")
) {
let query: catalog::Query = serde_json::from_value(payload)?;
let tx = self.db.transaction()?;