The Rundown · Schema

OpeningPricesResponse

SportsBettingOddsNFLNBAMLBNHLSoccerReal-TimeSports DataSportsbook

Properties

Name Type Description
meta object
markets object Keyed by market ID
View JSON Schema on GitHub

JSON Schema

therundown-openingpricesresponse-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://therundown.io/schemas/OpeningPricesResponse",
  "title": "OpeningPricesResponse",
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string"
        },
        "count": {
          "type": "integer"
        }
      }
    },
    "markets": {
      "type": "object",
      "description": "Keyed by market ID",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "market_id": {
            "type": "integer",
            "format": "int64"
          },
          "market_name": {
            "type": "string"
          },
          "lines": {
            "type": "object",
            "description": "Keyed by participant_id:line composite key",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "participant_id": {
                  "type": "integer"
                },
                "participant_type": {
                  "type": "string",
                  "enum": [
                    "TYPE_TEAM",
                    "TYPE_PLAYER",
                    "TYPE_RESULT"
                  ]
                },
                "participant_name": {
                  "type": "string"
                },
                "prices": {
                  "type": "object",
                  "description": "Keyed by affiliate ID",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "price": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "string",
                        "format": "date-time"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}