跳到主要内容

更新订单(限价)

请求类型: PUT 接口地址: /v4/order/{orderId}


参数说明

名称类型是否必填默认值描述取值范围
orderIdnumber订单ID
pricenumber价格
quantitynumber数量

限流规则

  • 50次/秒/每apikey

请求示例

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
{
"rc": 0,
"mc": "string",
"ma": [{}],
"result": {
"orderId": "6216559590087220004", // 订单ID
"modifyId": "407329711723834560" // 修改ID
}
}