Multithreaded betting bot that compares live match statistics with live odds from your favourite bookmaker. It evaluates the current live match situation, compares that with the available live odds and sends notifications through Slack.
Have this program observe all live football matches and notify you and your friends when there is a good betting opportunity!
The program fetches all upcoming matches each day. When a match goes live, a new thread is started with a "match observer" that compares live game statistics with live Asian Handicap odds (currently using Bet365) for that specific match. When a situation is evaluated to be good, notifications are sent to a slack channel to notify potential betters. The evaluation algorithm needs to be specified in Game_observer.py, I will not share mine. The application is currently set to Central Eastern Time, CET with support for CEST summer time.
The Sportmonks Football API that is used has an incredible amount of information and this program can certainly be expanded for more thorough analyses, though I managed to make a working net positive ROI strategy only using Asian Handicaps.
- This project relies on having access to the Sportmonks Football API, and adding your account's API Token to credentials.json
- You need to create a Slack app, that will enable you to create messaging bots. See instructions below.
- Create a new Slack workspace
- Go to the custom integrations panel, click Bots, and click Add to Slack
- Choose a name for your bot, save the API integration token, and add this to the field 'slack_token' credentials.json
- Create channels for notifications (required), error (optional), and logs (optional) and invite your bot to these channels by clicking Details, More and Add App
- Add the names of your channels into their respective fields in credentials.json
Following these instructions, you should be good to go, and can invite any people to the notifications channel.
- Modify the credentials.json file to include your slack connection token, sportmonks API token, and slack channel information
- Build the docker image by running
docker build -t scanner_application .
from the base directory
The application is currently sharing the network with its host, be aware of any security implications this has.
- Start a new container on your local machine by running
docker run --net=host -e TZ="Europe/Stockholm" scanner_application
- Or deploy the application to your favourite alternative Docker host. Here is a picture of mine!