Skip to main content

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' }

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

moneyline-0.4.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

moneyline-0.4.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file moneyline-0.4.0.tar.gz.

File metadata

  • Download URL: moneyline-0.4.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.8

File hashes

Hashes for moneyline-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ff5bc80468d35850c16c0352a177af4295a58bf17388a634e364fadacb8afceb
MD5 a8792faa08d0151fec00db0db5e0ee56
BLAKE2b-256 361f93746a17ecc643cb55d2f014f6dbac3d6f10b7cc3f411936232c042f7a4a

See more details on using hashes here.

File details

Details for the file moneyline-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: moneyline-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.8

File hashes

Hashes for moneyline-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98ba26d5c2bcf301ee8a257a0a2d530cf2de5d67b570b0f76946bdb98a845a61
MD5 0561ae059c6e67a7f744be5527560a35
BLAKE2b-256 c250440aa5c23e22b1a62f66c1c224934de41d0deb64515e7ecb2e35395815fe

See more details on using hashes here.

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