Edit a buy order (v1)
Deprecated
This path is served by the same code as POST /v2/edit-buy-order and answers with its contract: same rules and refusal codes, and the same response with v1's field names added.
The body is the same as before: id, price, amount.
Changed from the old v1:
filledis kept; it was reset to 0, which would buy the whole amount again.amountis the total, bought items included. At or belowfilledcloses the order (closed: true).- Both
priceandamountare required, as positive whole numbers;amountis 1 to 250. - The answer has v2's
order(orclosed: true) and, as before,id,price,amountandmsg. Refusals have v2'smsgand acode. - Rate limit: 10 writes per 10 seconds, shared with create and both removals.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
apirequired | query | string | Your WAXPEER API key |
Request body
| Name | Location | Type | Description |
|---|---|---|---|
idrequired | body | integer | Order id |
pricerequired | body | integer | New price per item, a positive whole number (1000 = $1), a multiple of its price step |
amountrequired | body | integer | New total amount, 1 to 250, bought items included. At or below filled closes the order |
{
"id": 123,
"price": 13000,
"amount": 5
}Responses
200 Successful operation or refusal
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
successoptional | boolean | Whether the operation succeeded | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
orderoptional | object | The updated order (absent when closed is true) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
closedoptional | boolean | true when amount was at or below filled and the order was closed | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
msgoptional | string | Placed order 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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
idoptional | integer | Order id | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
priceoptional | integer | New price per item (1000 = $1) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
amountoptional | integer | New total amount | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"success": true,
"order": {
"id": 123,
"name": "AK-47 | Redline (Field-Tested)",
"game": "csgo",
"price": 13000,
"amount": 5,
"filled": 1,
"allow_trade_locked": false,
"filters": {
"float_min": 0.15,
"float_max": 0.18,
"paint_seeds": [
661,
670
],
"stickers": [
{
"id": 4777,
"slot": 0
},
{
"id": 55
}
]
},
"created": "2026-10-19T10:00:00Z",
"last_update": "2026-10-19T11:00:00Z"
},
"msg": "Placed order",
"id": 123,
"price": 13000,
"amount": 5
}400 Bad Request
| Name | Type | Description |
|---|---|---|
successoptional | boolean | Whether the operation succeeded |
msgoptional | string | Placed order 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 |
{
"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 | Placed order on success; otherwise why the request was refused |
msBeforeNextoptional | number | Milliseconds before next allowed request |
{
"success": false,
"msg": "string",
"msBeforeNext": 0
}