Skip to main content
GET
/
v1
/
markets
/
{market_id}
/
order_book
/
{market_asset_id}
Get Order Book
curl --request GET \
  --url https://api.predictamarkets.com/v1/markets/{market_id}/order_book/{market_asset_id}
[
  [
    64,
    50
  ],
  [
    63,
    120
  ],
  [
    62,
    200
  ]
]

Documentation Index

Fetch the complete documentation index at: https://docs.predictamarkets.com/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

market_id
required

Flexible identifier type that accepts either a numeric integer ID or a human-readable qualified ID string (QID). QIDs follow a prefix convention: MA for markets, MAA for market assets, AP for account payouts. Most path parameters that accept an ID use this type so callers can use whichever form is more convenient.

market_asset_id
integer
required

Integer ID of the market asset (outcome)

Query Parameters

opinion_side
enum<string> | null

The two tradeable sides of a market asset: YES or NO.

Available options:
YES,
NO

Response

Order book

Required array length: 2 elements