latest contributor to this doc

Last Edit: @smk762 ,

cancel_all_orders

cancel_all_orders cancel_by

The cancel_all_orders cancels the active orders created by the AtomicDEX API node by specified condition.

StructureTypeDescription
cancel_byobjectA standard CancelBy object. Orders matching this filter are cancelled.

StructureTypeDescription
cancelledarray of strings (uuids)uuids of cancelled orders
currently_matchingarray of strings (uuids)uuids of the orders being matched with other orders; these are not cancelled even if they fit cancel condition

POST
cancel_all_orders
{
  "userpass": "testpsw",
  "method": "cancel_all_orders",
  "cancel_by": {
    "type": "All"
  }
}

POST
cancel_all_orders
{
  "userpass": "testpsw",
  "method": "cancel_all_orders",
  "cancel_by": {
    "type": "Pair",
    "data": {
      "base": "DOC",
      "rel": "MARTY"
    }
  }
}

POST
cancel_all_orders
{
  "userpass": "testpsw",
  "method": "cancel_all_orders",
  "cancel_by": {
    "type": "Coin",
    "data": {
      "ticker": "DOC"
    }
  }
}