Skip to main content

Modify Order

Modify an existing unfilled futures order.

HTTP Request

POST /api/v1/future/order/modify-order

Request Parameters

ParameterTypeRequiredDescription
symbolstringYesTrading pair symbol (e.g., BTCUSDT)
newClientOidstringYesNew client order ID for the modified order
orderIdstringNoOrder ID (provide orderId or clientOid)
clientOidstringNoClient order ID (provide orderId or clientOid)
newSizestringNoNew order size
newPricestringNoNew order price
newPresetTakeProfitPricestringNoNew take profit trigger price
newPresetStopLossPricestringNoNew stop loss trigger price

Request Example

curl -X POST "https://open-api.bydoxe.com/api/v1/future/order/modify-order" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"orderId": "fu-123456789",
"newClientOid": "my-modified-order-001",
"newSize": "0.6",
"newPrice": "39500.00",
"newPresetTakeProfitPrice": "42500.00",
"newPresetStopLossPrice": "37500.00"
}'

Response Parameters

ParameterTypeDescription
codestringResponse code
msgstringResponse message
requestTimenumberRequest timestamp in milliseconds
dataobjectModified order response data
> orderIdstringNew order ID after modification
> clientOidstringNew client order ID

Response Example

Success Response

{
"code": "00000",
"msg": "success",
"requestTime": 1763459280000,
"data": {
"orderId": "fu-123456790",
"clientOid": "my-modified-order-001"
}
}

Error Codes

CodeMessage
40001symbol does not exist
40001Order ID or client order ID is required
40001New client order ID is required
40001New size, price, preset take profit price, or preset stop loss price is required
40001Order not found
40001Invalid new Order price
40001New Size is too large
40001New Size is too small
40001New Size decimal precision is too high
40001New Take Profit price decimal precision is too high
40001New Stop Loss price decimal precision is too high
40001Insufficient balance
40018Order price decimal precision is too high