Skip to main content

Amend an order

Amends an existing order's price, size, or trigger price. The amendType field selects which field(s) are changed and which inputs are required.

Request Parameters​

NameTypeRequiredDescription
orderIdStringNoServer-assigned order id of the order to amend. Required if clOrderId is not provided.
clOrderIdStringNoClient-assigned order id of the order to amend. Required if orderId is not provided.
symbolStringYesTrading pair symbol of the order to amend.
amendTypeStringYesWhich field to amend: PRICE, SIZE, TRIGGER_PRICE, or ALL.
orderSizeDoubleNoNew order size in number of contracts. Required when amendType is SIZE, or ALL when combined with orderPrice.
orderPriceDoubleNoNew limit price. Required when amendType is PRICE (unless slide is true) or ALL when combined with orderSize.
triggerPriceDoubleNoNew trigger price. Required when amendType is TRIGGER_PRICE.
slideBooleanNoIf true and amendType is PRICE, the price is slid to the best available price instead of being taken from orderPrice.
totalAmountModeBooleanNoIf true, orderSize is treated as the desired total original size rather than an incremental change.

Response Content​

NameTypeDescription
orderIdStringServer-assigned order id of the amended order.
clOrderIdStringClient-assigned order id echoed from the request.
symbolStringTrading pair symbol of the amended order.
orderSideStringOrder side: BUY or SELL.
typeIntegerOrder type code.
orderPriceDoubleLimit price after the amendment.
orderSizeDoubleOrder size after the amendment, in number of contracts.
triggerPriceDoubleTrigger price after the amendment, if applicable.
statusIntegerOrder status code after the amendment.
timestampLongServer timestamp of the amendment, in milliseconds since epoch.
example
PUThttps://api.btse.com/futures/api/v3/trade/orders

Request (default)

{
"symbol": "BTC-PERP",
"orderId": "0251ea47-88b5-48c0-aeb3-b38774fd1f90",
"amendType": "PRICE",
"orderPrice": 56439.4
}

Response (default)

[
{
"orderId": "0251ea47-88b5-48c0-aeb3-b38774fd1f90",
"clOrderId": "",
"symbol": "BTC-PERP",
"orderSide": "BUY",
"type": 76,
"orderPrice": 56439.4,
"orderSize": 1,
"triggerPrice": 0,
"status": 123,
"timestamp": 1784882344404
}
]