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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df179402c554487bf478ecb38560c0a8b215fbaa3ee1ade1169cd2fa7d59e7de
|
|
| MD5 |
b28c43d652bc733bd4be05823693af40
|
|
| BLAKE2b-256 |
cddffebdf435a6ec80eaecc07afc57c1972eae614dbb09cdc4bc9a7ae7f19108
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
odds_api_client-0.1.1.tar.gz -
Subject digest:
df179402c554487bf478ecb38560c0a8b215fbaa3ee1ade1169cd2fa7d59e7de - Sigstore transparency entry: 1399342880
- Sigstore integration time:
-
Permalink:
odds-api/odds-api@9768583a03431b2c85162ff984a4447d3931e8d5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/odds-api
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9768583a03431b2c85162ff984a4447d3931e8d5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file odds_api_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: odds_api_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e69e801ad4791cc01fba034b7fb87438523a1f5f3ae97f3600aac6f80b57e81
|
|
| MD5 |
c4c82e2163c1d2a77d640cfbf93e938d
|
|
| BLAKE2b-256 |
6be1ffda6881eee4ed547712afe8e1f058eabeda998b6efefae8962943557d92
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
odds_api_client-0.1.1-py3-none-any.whl -
Subject digest:
6e69e801ad4791cc01fba034b7fb87438523a1f5f3ae97f3600aac6f80b57e81 - Sigstore transparency entry: 1399342893
- Sigstore integration time:
-
Permalink:
odds-api/odds-api@9768583a03431b2c85162ff984a4447d3931e8d5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/odds-api
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9768583a03431b2c85162ff984a4447d3931e8d5 -
Trigger Event:
workflow_dispatch
-
Statement type: