Cancel account orders by ID batch, market or outcome asset
This commit is contained in:
@@ -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(());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user