Trading
Edit Order
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 a new txid will be returned in the response.
Note: The new AmendOrder endpoint resolves the caveats listed below and has additional performance gains.
Caveats for EditOrder:
- Triggered stop loss or take profit orders are not supported.
- Orders with conditional close terms attached are not supported.
- Orders where the executed volume is greater than the newly supplied volume will be rejected.
- cl_ord_id is not supported.
- Existing executions are associated with the original order and not copied to the amended order.
- Queue position will not be maintained.
API Key Permissions Required: Orders and trades - Create & modify orders and Orders and trades - Cancel & close orders
post/private/EditOrder
Request
- Base URL: https://api.kraken.com/0
- URL: https://api.kraken.com/0/private/EditOrder
- Auth: API key in header API-Key and API key in header API-Sign
Request body
Example request
{
"nonce": 1695828490,
"pair": "XBTUSD",
"txid": "OHYO67-6LP66-HMQ437",
"volume": "1.25",
"price": "27500",
"price2": "26500"
}Response
Order edited.
Example response
{
"error": [],
"result": {
"descr": {
"order": "buy 1.25000000 XBTUSD @ limit 27500.0"
},
"txid": "OU22CG-KLAF2-FWUDD7"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.