Expose account holdings across reservation and redemption states
This commit is contained in:
@@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user