On this page

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 Komodo DeFi Framework 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": "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"
    }
  }
}