Remove all your buy orders, or one game's (v2)
Remove all your open orders, or only those of game. Send {} for all games.
Every removed order is recorded in GET /v2/buy-order-history with kind = cancelled and reason = user.
Rate limit. Create, edit and both removals share one budget: 10 requests per 10 seconds per account, on the v1 and v2 paths together. Over it the answer is HTTP 429 with Retry-After and msBeforeNext.
Errors. Refusals are HTTP 200 with {"success": false, "msg": "…", "code": "…"}. Branch on code: it is stable, msg is human text. Codes this method answers: invalid_request, busy, error. The full list is on POST /v2/create-buy-order. A missing or wrong API key is HTTP 403; the write rate limit is HTTP 429.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
apirequired | query | string | Your WAXPEER API key |
Request body
| Name | Location | Type | Description |
|---|---|---|---|
gameoptional | body | enum | csgo, dota2, rust or tf2; absent = all games enum: csgo, dota2, rust, tf2 |
{
"game": "rust"
}Responses
200 Successful operation or refusal
| Name | Type | Description |
|---|---|---|
successoptional | boolean | Whether the operation succeeded |
removedoptional | integer | How many orders were removed |
msgoptional | string | Why the request was refused (only when success is false) |
codeoptional | enum | Stable refusal code (only when success is false) enum: invalid_request, invalid_price, 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 |
{
"success": true,
"removed": 2
}400 Body is not a JSON object
| Name | Type | Description |
|---|---|---|
successoptional | boolean | Whether the operation succeeded |
msgoptional | string | Why the request was refused (only when success is false) |
codeoptional | enum | Stable refusal code (only when success is false) enum: invalid_request, invalid_price, 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 |
{
"success": false,
"msg": "Invalid request",
"code": "invalid_request"
}429 Too many requests. Rate limit exceeded
| Name | Type | Description |
|---|---|---|
successoptional | boolean | Whether the operation succeeded |
msgoptional | string | Why the request was refused (only when success is false) |
msBeforeNextoptional | number | Milliseconds before next allowed request |
{
"success": false,
"msg": "string",
"msBeforeNext": 0
}