Skip to main content

Python SDK for an OpenAPI sports betting odds API for coding agents, with simple REST examples, mock mode, arbitrage, positive EV, line movement, and bookmaker comparison.

Project description

odds-api-client

Python SDK for odds-api/odds-api, an OpenAPI-first sports betting odds API for coding agents and developers.

Use this package when you want typed Python access to sports odds, betting odds, bookmaker comparison, arbitrage examples, positive EV examples, line movement, racing odds, and local mock-friendly tests.

Install

After the first PyPI release is published:

python3 -m pip install odds-api-client

For local development from the GitHub repo:

git clone https://github.com/odds-api/odds-api.git
cd odds-api
python3 -m pip install -e sdks/python

Quickstart

from odds_api import OddsApiClient

client = OddsApiClient(api_key="your_api_key")
events = client.search_events(sport="rugby-league", league="NRL")
print(events)

The SDK also reads ODDS_API_KEY and ODDS_API_BASE_URL from the environment:

from odds_api import OddsApiClient

client = OddsApiClient()
sports = client.list_sports()

Common methods

  • list_sports()
  • list_bookmakers()
  • list_leagues()
  • search_events()
  • get_odds_snapshot()
  • get_odds_history()
  • find_best_odds()
  • compare_bookmakers()
  • find_arbitrage()
  • find_positive_ev()
  • get_line_movement()
  • search_racing_events()
  • get_racing_odds()

Safety

Arbitrage and positive EV examples are betting research workflows, not guaranteed-profit systems. Always account for stale odds, limits, delays, suspensions, voids, jurisdiction, and execution risk.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odds_api_client-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odds_api_client-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file odds_api_client-0.1.1.tar.gz.

File metadata

  • Download URL: odds_api_client-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for odds_api_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 df179402c554487bf478ecb38560c0a8b215fbaa3ee1ade1169cd2fa7d59e7de
MD5 b28c43d652bc733bd4be05823693af40
BLAKE2b-256 cddffebdf435a6ec80eaecc07afc57c1972eae614dbb09cdc4bc9a7ae7f19108

See more details on using hashes here.

Provenance

The following attestation bundles were made for odds_api_client-0.1.1.tar.gz:

Publisher: python-publish.yml on odds-api/odds-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file odds_api_client-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for odds_api_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e69e801ad4791cc01fba034b7fb87438523a1f5f3ae97f3600aac6f80b57e81
MD5 c4c82e2163c1d2a77d640cfbf93e938d
BLAKE2b-256 6be1ffda6881eee4ed547712afe8e1f058eabeda998b6efefae8962943557d92

See more details on using hashes here.

Provenance

The following attestation bundles were made for odds_api_client-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on odds-api/odds-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page