Skip to main content
Get the aggregated order book for a market. 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/markets/{id}/book/

Authentication

No authentication is required for this endpoint.

Parameters

id
integer
required
The unique identifier of the market.
currency_mode
string
required
The currency mode to query. Accepted values: play_money, real_money.
position
string
default:"long"
The position side to query. Accepted values: long, short.

Response

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

Example

cURL
curl --request GET \
  --url "https://api.futuur.com/markets/501/book/?currency_mode=play_money&position=long"
Sample response
{
  "bid": [
    {
      "price": 0.62,
      "total_shares": 120.0,
      "total_amount": 74.4,
      "total_fees": 0.12,
      "cumulative_shares": 120.0,
      "cumulative_amount": 74.4,
      "cumulative_fees": 0.12,
      "total_user_shares": 50.0,
      "total_user_shares_requested": 0.0
    },
    {
      "price": 0.60,
      "total_shares": 80.0,
      "total_amount": 48.0,
      "total_fees": 0.08,
      "cumulative_shares": 200.0,
      "cumulative_amount": 122.4,
      "cumulative_fees": 0.20,
      "total_user_shares": 0.0,
      "total_user_shares_requested": 0.0
    }
  ],
  "ask": [
    {
      "price": 0.64,
      "total_shares": 95.0,
      "total_amount": 60.8,
      "total_fees": 0.10,
      "cumulative_shares": 95.0,
      "cumulative_amount": 60.8,
      "cumulative_fees": 0.10,
      "total_user_shares": 0.0,
      "total_user_shares_requested": 10.0
    },
    {
      "price": 0.66,
      "total_shares": 60.0,
      "total_amount": 39.6,
      "total_fees": 0.06,
      "cumulative_shares": 155.0,
      "cumulative_amount": 100.4,
      "cumulative_fees": 0.16,
      "total_user_shares": 0.0,
      "total_user_shares_requested": 0.0
    }
  ]
}