Remove all buy orders (v1)
Deprecated
This path is served by the same code as POST /v2/remove-all-orders and answers with its contract: same rules and refusal codes, and the same response with v1's field names added.
Pass game in the query as before; without it all your orders are removed.
Changed from the old v1:
- The number removed is in
removedand, as before, incount, withmsg=Removed. - Every removed order is recorded in the history with
kind=cancelledandreason=user. - Rate limit: 10 writes per 10 seconds, shared with create, edit and remove.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
apirequired | query | string | Your WAXPEER API key |
gameoptional | query | enum | csgo, dota2, rust or tf2; absent = all games enum: csgo, dota2, rust, tf2 |
Responses
200 Successful operation or refusal
| Name | Type | Description |
|---|---|---|
successoptional | boolean | Whether the operation succeeded |
removedoptional | integer | How many orders were removed |
msgoptional | string | Removed on success; otherwise why the request was refused |
codeoptional | enum | Stable refusal code (only when success is false) enum: invalid_request, invalid_price, invalid_price_step, invalid_amount, invalid_filters, filters_not_editable, item_not_found, price_too_low, kyc_required, tradelink_required, price_above_balance, exposure_limit, too_many_orders, order_not_found, too_many_ids, busy, error |
countoptional | integer | The same as removed (v1 name) |
{
"success": true,
"removed": 2,
"msg": "Removed",
"count": 2
}429 Too many requests. Rate limit exceeded
| Name | Type | Description |
|---|---|---|
successoptional | boolean | Whether the operation succeeded |
msgoptional | string | Removed on success; otherwise why the request was refused |
msBeforeNextoptional | number | Milliseconds before next allowed request |
{
"success": false,
"msg": "string",
"msBeforeNext": 0
}