Remove buy order(s) (v1)
Deprecated
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=cancelledandreason=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.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
apirequired | query | string | Your WAXPEER API key |
idrequired | query | array<integer> | Order id; repeat for several (up to 1000) |
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_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 |
{
"success": true,
"removed": 2
}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
}