Cancel All Orders
Method: private/cancel_all
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| detailed | boolean | false | When detailed is set to true output format is changed. Default: false |
| freezeQuotes | boolean | false | Whether or not to reject incoming quotes for 1 second after cancelling (false by default). Related to private/mass_quote request |
Request Example
{
"rid": 41002,
"method": "private/cancel_all",
"params": {
"detailed": false,
"freezeQuotes": false
}
}
Response
Total number of successfully cancelled orders
Response Example
{
"rid": 41002,
"result": 1
}
Cancel All Orders By Currency
Method: private/cancel_all_by_currency
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| currency | string | true | The currency symbol |
| kind | string | false | Instrument kind, "combo" for any combo or "any" for all. If not provided instruments of all kinds are considered. Allowed values: "future", "option", "spot", "future_combo", "option_combo", "combo", "any" |
| type | string | false | Order type - limit, stop, take, trigger_all or all, default - all |
| detailed | boolean | false | When detailed is set to true output format is changed. See description. Default: false |
| freezeQuotes | boolean | false | Whether or not to reject incoming quotes for 1 second after cancelling (false by default). Related to private/mass_quote request. |
Request Example
{
"rid": 41002,
"method": "private/cancel_all_by_currency",
"params": {
"currency": "BTC",
"kind": "future",
"type": "all"
}
}
Response
Total number of successfully cancelled orders
Response Example
{
"rid": 41002,
"result": 1
}