Skip to main content
{
    "event": "editOrder",
    "newuserref": "666",
    "oflags": "",
    "orderid": "O26VH7-COEPR-YFYXLK",
    "pair": "XBT/USD",
    "price": "9000",
    "reqid": 3,
    "token": "0000000000000000000000000000000000000000"
}

Documentation Index

Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

WSSws-auth.kraken.comeditOrder
Sends a request to edit the order parameters of a live order. When an order has been successfully modified, the original order will be cancelled and a new order will be created with the adjusted parameters and a new txid will be returned in the response.
The newer amendOrder endpoint resolves the caveats listed below and has additional performance gains.There are a number of caveats for editOrder:
  • editOrder cannot be used on partially filled orders.
  • editOrder is a cancel and replace, so queue priority is not maintained.
  • editOrder generates a new txid for the order.
event
string
required
Value: editOrder
orderid
string
Original Order ID or userref.
pair
string
required
Currency pair.
price
string
Dependent on order type - order price.
price2
string
Dependent on order type - order secondary price.
volume
string
required
Order volume in base currency.
oflags
string
Comma delimited list of order flags. post = post only order (available when ordertype = limit).
newuserref
string
User reference ID for new order (should be an integer in quotes).
validate
boolean
Validate inputs only; do not submit order.
reqid
integer
Optional client originated request identifier sent as acknowledgment in the response.
token
string
required
Session token from the GetWebSocketsToken REST endpoint.