Sync with Waxpeer session to auto-fill API key

Remove buy order(s) (v1)

GET/v1/remove-buy-orderDeprecated

Deprecated

Use this instead: POST /v2/remove-buy-order

This path is served by the same code as POST /v2/remove-buy-order and answers with its contract: same rules and refusal codes, and the same response with v1's field names added.

Pass the ids in the query as before (id=123&id=345), up to 1000.

Changed from the old v1:

  • Every removed order is recorded in the history with kind = cancelled and reason = user.
  • An id that is not a whole number refuses the request with code = invalid_request.
  • Rate limit: 10 writes per 10 seconds, shared with create, edit and remove-all.
Prices are integers. 1000 = $1.00 USD.

Parameters

NameLocationTypeDescription
api
required
querystring
id
required
queryarray<integer>

Order id; repeat for several (up to 1000)

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

Why the request was refused (only when success is false)

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

Response
{
  "success": true,
  "removed": 2
}

429 Too many requests. Rate limit exceeded

NameTypeDescription
success
optional
boolean

Whether the operation succeeded

msg
optional
string

Why the request was refused (only when success is false)

msBeforeNext
optional
number

Milliseconds before next allowed request

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