{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/livetennisapi-com/json-schema/livetennisapi-com-point-price-schema.json",
  "title": "PointPrice",
  "description": "One played point with the match-winner quote in force per side when it was captured (added 2026-09-15). The score state is the BASIC tape's; the ULTRA-only per-point fields (server, winner, serve, outcome) are not here. Prices are keyed by neutral side and carry no venue or token identifiers.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/livetennisapi-com-history-api-openapi.yml#/components/schemas/PointPrice",
  "type": "object",
  "properties": {
    "seq": {
      "type": "integer",
      "description": "Per-match monotonic position 1..N — the same seq as the live points row."
    },
    "at": {
      "type": "string",
      "format": "date-time",
      "description": "Our capture time of the point (UTC)."
    },
    "sets": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "games": {
      "type": "array",
      "description": "Per-set games arrays, [p1, p2].",
      "items": {
        "type": "array",
        "items": {
          "type": "integer"
        }
      }
    },
    "score": {
      "type": "object",
      "properties": {
        "p1": {
          "type": [
            "string",
            "null"
          ]
        },
        "p2": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "tiebreak": {
      "type": "boolean"
    },
    "prices": {
      "type": "object",
      "description": "Keyed by side — \"1\" = players.p1's outcome, \"2\" = players.p2's.",
      "properties": {
        "1": {
          "type": [
            "object",
            "null"
          ],
          "description": "The quote for this side, or null when no usable quote exists for the point.",
          "properties": {
            "bid": {
              "type": [
                "number",
                "null"
              ]
            },
            "ask": {
              "type": [
                "number",
                "null"
              ]
            },
            "mid": {
              "type": [
                "number",
                "null"
              ]
            },
            "spread": {
              "type": [
                "number",
                "null"
              ]
            }
          }
        },
        "2": {
          "type": [
            "object",
            "null"
          ],
          "description": "The quote for this side, or null when no usable quote exists for the point.",
          "properties": {
            "bid": {
              "type": [
                "number",
                "null"
              ]
            },
            "ask": {
              "type": [
                "number",
                "null"
              ]
            },
            "mid": {
              "type": [
                "number",
                "null"
              ]
            },
            "spread": {
              "type": [
                "number",
                "null"
              ]
            }
          }
        }
      }
    },
    "lag_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Seconds between the quote and the point, the larger of the two sides (a negative side lag means the first quote after the point was used); null when no side aligned."
    },
    "resolution": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "tick",
        "minute",
        "coarse",
        null
      ],
      "description": "tick |lag| <= 15 s, minute <= 90 s, coarse beyond — the coarser of the two sides; null when no side aligned. An honest label, never upgraded."
    }
  }
}