Expose paginated account orders and terminal order lookup

This commit is contained in:
2026-12-03 03:56:10 +08:00
parent 646cf193bb
commit 4a9b696644
7 changed files with 159 additions and 2 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
mod account_orders;
mod catalog;
mod validation;
use validation::identifier;
@@ -32,7 +33,7 @@ impl Exchange {
pub fn execute(&mut self, payload: Value) -> Result<Value> {
if matches!(
payload["op"].as_str(),
Some("catalog" | "history" | "quote" | "book")
Some("catalog" | "history" | "quote" | "book" | "open_orders")
) {
let query: catalog::Query = serde_json::from_value(payload)?;
let tx = self.db.transaction()?;