Skip to main content

Market Aggregation

Retrieve detailed market information including outcomes and current orders.

Example Query

query MarketDetails($marketId: ID!) {
  market(id: $marketId) {
    id
    description
    type
    strike
    volume
    outcomes {
      id
      probability
      orders {
        price
        qty
      }
    }
  }
}

Variables

{
  "marketId": "123e4567-e89b-12d3-a456-426614174001"
}

Example Response

{
  "data": {
    "market": {
      "id": "123e4567-e89b-12d3-a456-426614174001",
      "description": "KC v BUF Total",
      "type": "TOTAL",
      "strike": 26.5,
      "volume": 1000000,
      "outcomes": [
        {
          "id": "outcome-1",
          "probability": 0.5,
          "orders": [
            {
              "price": 0.667,
              "qty": 110
            }
          ]
        }
      ]
    }
  }
}

Field Reference

Market Fields

FieldTypeDescription
idIDUnique market identifier
descriptionStringHuman-readable market description
typeStringMarket type (MONEY, SPREAD, TOTAL, etc.)
strikeFloatThreshold value for the market
volumeIntTotal trading volume
outcomes[Outcome]Array of outcomes for this market

Outcome Fields

FieldTypeDescription
idIDUnique outcome identifier
probabilityFloatCurrent probability (0-1)
orders[Order]Current orders on this outcome

Order Fields

FieldTypeDescription
priceFloatOrder price in decimal probability
qtyIntOrder quantity in minimum currency units