Skip to content

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

odds-api

The repository contains a partial integration of OddsPapi - B2B Sports Betting Odds API.

Documentation about the design can be found in this design doc but as a design doc it does not contain all the implementation nuances.

Note: This was a 2 day-ish project so the code can be improved and refined around the nuances of the feed the API provides. It is not meant to be a hardened production ready service but it would not take much to adjust the risk checks and data pipeline.

Usage

The program is intended to be run in docker however it requires an API key ODDS_API_KEY for the client service. Check the docker compose file for more info.

You may use the docker commands directly from the justfile if you do not want to install just.

Build

Build the program

just

Start Services

The following command starts the client and pulls in minimal OTeL for logging and a grafana UI to inspect the logs upon first use.

When the services start navigate to http://localhost:3000/dashboards and click on Logs to see the system operate.

It starts by pulling in a snapshot from OddsPapi therefore it may take 30 seconds before updates begin streaming from their websocket.

just run

Stop Services

To stop the services without deleting generated logs

just stop

Purge Services

To stop and delete generated logs (but not delete the docker images)

just clean

About

A minimal implementation of OddsPapi - A B2B Sports Betting Odds API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages