跳到正文
注册

交易

撤单

将挂单从订单簿中撤下。已成交的部分保持成交。

DELETE/api/v1/orders/{orderId}获取密钥
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

    订单交易的交易对。

  • sidestring

    buy 或 sell。

  • typestring

    limit 或 market。

  • pricestring | null

    限价;市价单为 null。

  • amountstring

    下单数量。

  • filledstring

    目前已成交的数量。

  • averagePricestring | null

    已成交部分的均价;首次成交前为 null。

  • statusstring

    open、partially_filled、filled、cancelled 或 rejected。

  • timeInForcestring

    gtc、ioc 或 fok。

  • feestring

    目前已支付的手续费。

  • feeCurrencystring

    支付手续费所用的货币。

  • createdAtstring

    下单时间。

  • updatedAtstring

    最近一次变化的时间。