Skip to content
Sign up

Market data

Get the order book

The 50 best bids and asks for any instrument, as the matching engine holds them.

GET/api/v1/markets/book
curl --request GET \
  --url "https://reirex.com/api/v1/markets/book?symbol=BTC" \
  --header "Accept: application/json"

200 OKapplication/json

{
  "symbol": "BTC",
  "bids": [
    {
      "price": 72763,
      "amount": 0.002
    },
    {
      "price": 72761,
      "amount": 0.0064
    },
    {
      "price": 72759,
      "amount": 0.0108
    },
    // 47 more
  ],
  "asks": [
    {
      "price": 72768,
      "amount": 0.002
    },
    {
      "price": 72770,
      "amount": 0.0064
    },
    {
      "price": 72772,
      "amount": 0.0108
    },
    // 47 more
  ],
  "updatedAt": "2026-10-14T16:14:15.412Z"
}

Bids run from the best price down, asks from the best price up. The book is never cached: every call reads it as it stands. To follow it as it moves, stream the market: its book events carry the book as it changes.

Query parameters

  • symbolstringrequired

    The instrument's symbol, such as BTC, ASML, EURUSD or XAU.

Response

  • symbolstring

    The instrument's symbol.

  • bidsobject[]

    Buy orders, best price first.

  • asksobject[]

    Sell orders, best price first.

  • updatedAtstring

    When the book was read.