{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/odds-api-io/json-schema/odds-api-io-dto-event-value-bet-schema.json",
  "title": "dto.EventValueBet",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/odds-api-io-openapi.json#/components/schemas/dto.EventValueBet",
  "type": "object",
  "properties": {
    "betSide": {
      "type": "string"
    },
    "bookmaker": {
      "type": "string"
    },
    "bookmakerOdds": {
      "$ref": "#/$defs/dto.BookmakerOdds"
    },
    "event": {
      "$ref": "#/$defs/dto.EventInfo"
    },
    "eventId": {
      "type": "integer"
    },
    "expectedValue": {
      "type": "number",
      "description": "Bookmaker odds / fair odds x 100. 100 is the fair price; 103.42 means a 3.42% edge (edge in percent = expectedValue - 100). Values below 100 are a negative edge."
    },
    "expectedValueUpdatedAt": {
      "type": "string",
      "description": "Last time the expected value or the sharp limit increased. Not a freshness signal."
    },
    "firstSeenAt": {
      "type": "string",
      "format": "date-time",
      "description": "When this value bet first appeared."
    },
    "bookmakerOddsUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Last time this bookmaker price was written. May be absent."
    },
    "id": {
      "type": "string"
    },
    "market": {
      "$ref": "#/$defs/dto.MarketResult"
    }
  },
  "$defs": {
    "dto.BookmakerOdds": {
      "type": "object",
      "properties": {
        "away": {
          "type": "string"
        },
        "awayDirectLink": {
          "type": "string"
        },
        "draw": {
          "type": "string"
        },
        "drawDirectLink": {
          "type": "string"
        },
        "hdp": {
          "type": "string"
        },
        "home": {
          "type": "string"
        },
        "homeDirectLink": {
          "type": "string"
        },
        "href": {
          "type": "string"
        }
      }
    },
    "dto.EventInfo": {
      "type": "object",
      "properties": {
        "away": {
          "type": "string"
        },
        "date": {
          "type": "string"
        },
        "home": {
          "type": "string"
        },
        "league": {
          "type": "string"
        },
        "sport": {
          "type": "string"
        }
      }
    },
    "dto.MarketResult": {
      "type": "object",
      "properties": {
        "away": {
          "type": "string"
        },
        "draw": {
          "type": "string"
        },
        "hdp": {
          "type": "number"
        },
        "home": {
          "type": "string"
        },
        "max": {
          "type": "number"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}