latest contributor to this doc

Last Edit: @gcharang ,

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_byobjectorders matching this condition are cancelled
cancel_by.typestringAll to cancel all orders; Pair to cancel all orders for specific coin pairs; Coin to cancel all orders for a specific coin
cancel_by.dataobjectadditional data the cancel condition; present with Pair and Coin types
cancel_by.data.basestringbase coin of the pair; Pair type only
cancel_by.data.relstringrel coin of the pair; Pair type only
cancel_by.data.tickerstringorder is cancelled if it uses ticker as base or rel; Coin type only

StructureTypeDescription
resultobject
result.cancelledarray of strings (uuids)uuids of cancelled orders
result.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"
    }
  }
}