On this page

latest contributor to this doc

Last Edit:

@smk762

Cancel All Orders

API-v1cancel_all_orders

The cancel_all_orders method cancels the active orders created by the Komodo DeFi Framework API node by specified condition.

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

ParameterTypeDescription
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

cancel_all_orders

POST
cancel_all_orders
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "cancel_all_orders",
  "cancel_by": {
    "type": "All"
  }
}

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

POST
cancel_all_orders
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "cancel_all_orders",
  "cancel_by": {
    "type": "Coin",
    "data": {
      "ticker": "DOC"
    }
  }
}