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.
Parameter | Type | Required | Description |
---|---|---|---|
cancel_by | object | ✓ | A standard CancelBy object. Orders matching this filter are cancelled. |
Parameter | Type | Description |
---|---|---|
cancelled | array of strings (uuids) | UUIDs of cancelled orders |
currently_matching | array 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"
}
}
}