Git Product home page Git Product logo

soccer-bookmaker-odds's Introduction

soccer-bookmaker-odds

Historical data of bookmaker odds for some of the major soccer European leagues.

Build Status: Linux

Data includes teams, scores and average bookmaker odds for all games since 2005-2006 season for the following leagues:

  • English Premier League
  • Spanish Primera
  • German Bundesliga
  • Italian Serie A
  • French Ligue 1

Data format

Data is available in JSON and CSV formats.

Every file represents historical data for a certain league.

JSON data in every file is an array of seasons, each containing array of numbered rounds (fixtures) in this season, with each round containing array of games in this round.

Every game object has the following properties:

  • hTeam (string) - Home team name
  • aTeam (string) - Away team name
  • hScore (integer) - Home team score
  • aScore (integer) - Away team score
  • hOdd (float) - Average bookmaker odds for the home team in the decimal format
  • dOdd (float) - Odds for draw
  • aOdd (float) - Odds for away team
  • hProb (float) - Normalized probability of the home team victory calculated from the odds (see below)
  • dProb (float) - Probability of the draw
  • aProb (float) - Probability of the away team victory

For example, normalized probability for the home team victory is calculated in the following way:

hProb = 1/hOdd / (1/hOdd + 1/dOdd + 1/aOdd)

For more details, see JSON schema.

CSV data format is the flattened representation of the JSON structure, with each rows representing a game with the same columns as JSON properties described above, plus season and round columns.

Testing JSON data against the schema

Node.js version 6 or later and npm need to be installed.

Execute:

$ npm install
$ npm test

Or, with yarn:

$ yarn
$ yarn test

soccer-bookmaker-odds's People

Contributors

iredchuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

soccer-bookmaker-odds's Issues

Kind of odds

Hi,

Are the odds in the csv files openning or closing odds ?

Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.