交易
撤单
将挂单从订单簿中撤下。已成交的部分保持成交。
curl --request DELETE \
--url "https://reirex.com/api/v1/orders/01JA8K3Q7W2N5X4Y6Z8B0C1D2E" \
--header "GX-API-KEY: $GX_API_KEY" \
--header "GX-API-TIMESTAMP: $TIMESTAMP" \
--header "GX-API-SIGN: $SIGNATURE"200 OKapplication/json
{
"orderId": "01JA8K3Q7W2N5X4Y6Z8B0C1D2E",
"clientOrderId": "my-order-0001",
"pair": "BTC-EUR",
"side": "buy",
"type": "limit",
"price": "70000.00",
"amount": "0.05000000",
"filled": "0.00000000",
"averagePrice": null,
"status": "cancelled",
"timeInForce": "gtc",
"fee": "0.00",
"feeCurrency": "EUR",
"createdAt": "2026-10-14T16:14:15.412Z",
"updatedAt": "2026-10-14T16:14:15.412Z"
}响应为订单的最终状态。对已全部成交或已撤销的订单,返回 order_closed。
路径参数
orderIdstring必填订单 id,来自下单响应或订单列表。
响应
orderIdstring我们为订单分配的 id。
clientOrderIdstring | null你为订单设置的 id(如有)。
pairstring订单交易的交易对。
sidestringbuy或sell。typestringlimit或market。pricestring | null限价;市价单为
null。amountstring下单数量。
filledstring目前已成交的数量。
averagePricestring | null已成交部分的均价;首次成交前为
null。statusstringopen、partially_filled、filled、cancelled或rejected。timeInForcestringgtc、ioc或fok。feestring目前已支付的手续费。
feeCurrencystring支付手续费所用的货币。
createdAtstring下单时间。
updatedAtstring最近一次变化的时间。

