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

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

moneyline-0.6.0.tar.gz (7.9 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.6.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moneyline-0.6.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

Hashes for moneyline-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c338731a2449d2cc230cf830e7b2aa8b2076ed75702feb1195d076bff75e1102
MD5 6fe33bc5e76c7b1019fde81a137d56ff
BLAKE2b-256 a1c9715df6e151331dbef53ed074a005d14c3a34c36a4ffbda4cc265ff894fba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moneyline-0.6.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

Hashes for moneyline-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 500ea8f5c8883258672140690b29ed1baf097326a8f543d11151d04e59031860
MD5 27f5147cd61b8508799fd3047e76b899
BLAKE2b-256 d9a9871e4ce4771e38d5b4ff25f0ceffdbdbfae58fc750d1b645439d8644e6eb

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