Expose paginated account orders and terminal order lookup
This commit is contained in:
@@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user