Cancel account orders by ID batch, market or outcome asset

This commit is contained in:
2026-12-03 04:23:08 +08:00
parent 67426ae617
commit c27bb60fd2
8 changed files with 221 additions and 2 deletions
+9 -1
View File
@@ -33,7 +33,15 @@ pub(crate) fn market_assets(db: &Connection, market: &str) -> Result<Value> {
pub(crate) fn resolve(db: &Connection, request: &mut Value) -> Result<()> {
if !matches!(
request["op"].as_str(),
Some("order" | "book" | "quote" | "history" | "open_orders" | "trades")
Some(
"order"
| "book"
| "quote"
| "history"
| "open_orders"
| "trades"
| "cancel_market_orders"
)
) {
return Ok(());
}