Skip to main content

Update Order(Limit)

Type: PUT Description: /v4/order/{orderId}

Parameters

nametypemandatorydefaultdescriptionranges
orderIdnumbertrueorder ID
pricenumbertruePrice
quantitynumbertrueQuantity

Limit Flow Rules

50/s/apikey

Parameters Example

curl --location --request PUT 'https://sapi.xt.com/v4/order/xxxxxx' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
--header 'validate-algorithms: HmacSHA256' \
--header 'validate-recvwindow: 60000' \
--header 'validate-appkey: xxxxxxxxxx' \
--header 'validate-timestamp: xxxxxxxxxx' \
--header 'validate-signature: xxxxxxxxxx' \
--data '{
"orderId": "xxxxxx",
"price": 10,
"quantity": 2
}'

Response Example

Response
{
"rc": 0,
"mc": "string",
"ma": [{}],
"result": {
"orderId": "6216559590087220004", //order id
"modifyId": "407329711723834560" //modify id
}
}