Sync with Waxpeer session to auto-fill API key

Remove all buy orders (v1)

GET/v1/remove-all-ordersDeprecated

Deprecated

Use this instead: POST /v2/remove-all-orders

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 removed and, as before, in count, with msg = Removed.
  • Every removed order is recorded in the history with kind = cancelled and reason = user.
  • Rate limit: 10 writes per 10 seconds, shared with create, edit and remove.
Prices are integers. 1000 = $1.00 USD.

Parameters

NameLocationTypeDescription
api
required
querystring
game
optional
queryenum

csgo, dota2, rust or tf2; absent = all games

enum: csgo, dota2, rust, tf2

Responses

200 Successful operation or refusal

NameTypeDescription
success
optional
boolean

Whether the operation succeeded

removed
optional
integer

How many orders were removed

msg
optional
string

Removed on success; otherwise why the request was refused

code
optional
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

count
optional
integer

The same as removed (v1 name)

Response
{
  "success": true,
  "removed": 2,
  "msg": "Removed",
  "count": 2
}

429 Too many requests. Rate limit exceeded

NameTypeDescription
success
optional
boolean

Whether the operation succeeded

msg
optional
string

Removed on success; otherwise why the request was refused

msBeforeNext
optional
number

Milliseconds before next allowed request

Response
{
  "success": false,
  "msg": "string",
  "msBeforeNext": 0
}