Skip to content
Sign up

Trading

Place an order

Buy or sell any instrument at your price or at the market. The answer comes back in milliseconds with the order's state.

POST/api/v1/ordersGet a key
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"
}

A limit order rests in the book until it fills, you cancel it or its time in force runs out. A market order fills at once against the best prices in the book. Every order is worth at least €10.

timeInForceThe order
gtcrests until it fills or you cancel it
iocfills what it can at once; the rest is cancelled
fokfills completely at once, or not at all

Fees are 0.10 % for takers and 0.08 % for makers, and fall as your tier rises. A postOnly order never takes liquidity, so it always pays the maker fee.

Bodyapplication/json

  • pairstringrequired

    The instrument and the currency you pay with, such as BTC-EUR.

  • sidestringrequired

    buy or sell.

    One ofbuysell

  • typestringrequired

    limit rests at your price, market fills at once.

    One oflimitmarket

  • amountstringrequired

    How much of the instrument, as a decimal string.

  • pricestring

    Your price, as a decimal string. Required for limit orders, left out for market ones.

  • timeInForcestringDefault: gtc

    How long the order stays in the book; see the table above.

    One ofgtciocfok

  • postOnlybooleanDefault: false

    If true, the order is cancelled rather than take liquidity.

  • clientOrderIdstring

    Your own id, up to 36 characters. Retry with the same id and the order is never placed twice.

Response

  • orderIdstring

    Our id for the order.

  • clientOrderIdstring | null

    Your id for it, if you gave one.

  • pairstring

    The pair it trades.

  • sidestring

    buy or sell.

  • typestring

    limit or market.

  • pricestring | null

    The limit price; null for market orders.

  • amountstring

    The amount ordered.

  • filledstring

    How much has filled so far.

  • averagePricestring | null

    The average price of what has filled; null before the first fill.

  • statusstring

    open, partially_filled, filled, cancelled or rejected.

  • timeInForcestring

    gtc, ioc or fok.

  • feestring

    The fees paid so far.

  • feeCurrencystring

    The currency the fees are paid in.

  • createdAtstring

    When the order was placed.

  • updatedAtstring

    When it last changed.