交易
下单
以你的价格或市价买卖任意品种。毫秒级返回响应,并附上订单状态。
curl --request POST \
--url "https://reirex.com/api/v1/orders" \
--header "GX-API-KEY: $GX_API_KEY" \
--header "GX-API-TIMESTAMP: $TIMESTAMP" \
--header "GX-API-SIGN: $SIGNATURE" \
--header "Content-Type: application/json" \
--data '{"pair":"BTC-EUR","side":"buy","type":"limit","amount":"0.05","price":"70000","clientOrderId":"my-order-0001"}'201 Createdapplication/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": "open",
"timeInForce": "gtc",
"fee": "0.00",
"feeCurrency": "EUR",
"createdAt": "2026-10-14T16:14:15.412Z",
"updatedAt": "2026-10-14T16:14:15.412Z"
}限价单会挂在订单簿中,直到成交、被你撤销或有效期届满。市价单立即以订单簿中的最优价格成交。每笔订单金额至少 10 欧元。
timeInForce | 订单 |
|---|---|
gtc | 挂单直至成交或被你撤销 |
ioc | 立即成交能成交的部分,其余撤销 |
fok | 立即全部成交,否则全部撤销 |
吃单手续费为 0.10%,挂单手续费为 0.08%,并随账户等级提升而降低。postOnly 订单从不吃单,因此始终按挂单费率付费。
请求体application/json
pairstring必填品种和你用来支付的货币,例如
BTC-EUR。sidestring必填buy或sell。可选值
buyselltypestring必填limit按你的价格挂单,market立即成交。可选值
limitmarketamountstring必填品种数量,以十进制字符串表示。
pricestring你的价格,以十进制字符串表示。
limit订单必填,market订单不填。timeInForcestring默认值:gtc订单在订单簿中保留多久;见上表。
可选值
gtciocfokpostOnlyboolean默认值:false若为
true,订单宁可撤销也不会吃单。clientOrderIdstring你自定义的 id,最多 36 个字符。用相同的 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最近一次变化的时间。

