Python package meant to ease the use of the LiveOdds API to find arbitrage opportunities
Project description
Moneyline
Moneyline is a python package meant to help detect arbitrage opportunities in sports (only for moneyline bets).
FOR MONEYLINE BETS, run these functions sequentially to get the final dataframe that is structured to detect arbitrage and non-arbitrage opportunities
fetch_and_process_ml_data(api_key, sports, regions), where the api key is a string, and sports and regions are lists of strings; returns df
group_event_ml(df)
find_arb_ml(result_df)
FOR SPREADS AND TOTALS follow the exact same sequence of functions, but call:
fetch_and_process_spreads_totals_data(api_key, sports, regions)
group_event_spreads_totals(df)
find_arb_spreads_totals(df)
FOR PLAYER PROPS
fetch_player_props(api_key)
group_player_odds(df)
find_arb_player(df)
Player Prop Markets are built in and include: SPORTS_MARKETS = { 'basketball_nba': 'player_points,player_blocks,player_assists,player_steals,player_rebounds', 'icehockey_nhl': 'player_points,player_goals,player_assists', 'soccer_epl': 'player_shots,player_assists,player_shots_on_target', 'soccer_france_ligue_one': 'player_shots,player_assists,player_shots_on_target', 'soccer_germany_bundesliga': 'player_shots,player_assists,player_shots_on_target', 'soccer_italy_serie_a': 'player_shots,player_assists,player_shots_on_target', 'soccer_spain_la_liga': 'player_shots,player_assists,player_shots_on_target', 'soccer_usa_mls': 'player_shots,player_assists,player_shots_on_target' }
FOR AUTOMATED EMAIL sending, use:
send_arb_email(email_body)
Installation
pip install moneyline
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
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 moneyline-0.5.0.tar.gz.
File metadata
- Download URL: moneyline-0.5.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8043a704e6b54e7785795d871c34cc2e614c0db53830519a76130e7321fca75
|
|
| MD5 |
58d9c57de172176b96c57975ec56ea52
|
|
| BLAKE2b-256 |
4f26561c2d18d4316de9e92a88e217460325e79db93dd09b48c58b7cd0458890
|
File details
Details for the file moneyline-0.5.0-py3-none-any.whl.
File metadata
- Download URL: moneyline-0.5.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78a43bc6428d85c5b20b222b34b0243ae8158e195b9bef807e0f737ffe064625
|
|
| MD5 |
677f7f61210ba9a3425f77c7013e51fd
|
|
| BLAKE2b-256 |
71f75820c1a80c76855e662d4caf6ac7eb9e8e7a4255acd93bf3cc2a3c5e0e5c
|