Skip to content
API reference /Account & trading

Revise an active order

Change the sample ETH order price from 2,420 to 2,430.

Endpoint & access

POST
/api/v1/usdt/edit_order

Whitelist Required

Request whitelist approval for your API key. This endpoint is available only after approval.

JSON body

Content-Type: application/json

Field Data type Required Meaning
order_id long YES Positive order ID.
order_price decimal NO New order price. Must be positive when supplied.
quantity integer NO New order quantity in contracts. Must be positive when supplied.

Supply at least one of order_price and quantity.

This endpoint requires a signed request. Send the request parameters in a JSON body.

Returned fields

Field Data type Meaning
data string success when the update succeeds.

Example input

{
  "order_id": 7302100000000042001,
  "order_price": 2430
}

Example result

{
  "code": 200,
  "message": null,
  "data": "success"
}