Skip to main content
Get the aggregated order book for a market within an event. The response contains bid and ask arrays with cumulative depth data at each price level, allowing you to assess market liquidity and your position within it.

Endpoint

GET https://api.futuur.com/events/{id}/order_book/

Authentication

HMAC authentication is required. Include the following headers with every request:
HeaderDescription
KeyYour public API key
TimestampCurrent Unix timestamp
HMACSHA-512 signature of the request payload

Parameters

id
integer
required
The unique identifier of the event.
currency_mode
string
required
The currency mode to query. Accepted values: play_money, real_money.
market
integer
required
The ID of the market within the event for which to retrieve the order book.
position
string
default:"l"
The position side to query. Accepted values: l (long), s (short).

Response

bids
object[]
required
Aggregated bid levels, sorted from highest to lowest price.
asks
object[]
required
Aggregated ask levels, sorted from lowest to highest price.

Example

cURL
curl --request GET \
  --url "https://api.futuur.com/events/1023/order_book/?currency_mode=play_money&market=501&position=l" \
  --header "Key: YOUR_PUBLIC_KEY" \
  --header "Timestamp: 1712500000" \
  --header "HMAC: YOUR_HMAC_SIGNATURE"
Sample response
{
  "bids": [
    {
      "price": 0.62,
      "total_shares": 120.0,
      "total_amount": 74.4,
      "cumulative_shares": 120.0,
      "cumulative_amount": 74.4,
      "total_user_shares": 50.0,
      "total_user_shares_requested": 0.0
    },
    {
      "price": 0.60,
      "total_shares": 80.0,
      "total_amount": 48.0,
      "cumulative_shares": 200.0,
      "cumulative_amount": 122.4,
      "total_user_shares": 0.0,
      "total_user_shares_requested": 0.0
    }
  ],
  "asks": [
    {
      "price": 0.64,
      "total_shares": 95.0,
      "total_amount": 60.8,
      "cumulative_shares": 95.0,
      "cumulative_amount": 60.8,
      "total_user_shares": 0.0,
      "total_user_shares_requested": 10.0
    },
    {
      "price": 0.66,
      "total_shares": 60.0,
      "total_amount": 39.6,
      "cumulative_shares": 155.0,
      "cumulative_amount": 100.4,
      "total_user_shares": 0.0,
      "total_user_shares_requested": 0.0
    }
  ]
}