{"id":19202022,"url":"https://github.com/subodh101/bet-optimizer","last_synced_at":"2025-04-10T12:15:14.228Z","repository":{"id":208577181,"uuid":"718639435","full_name":"subodh101/bet-optimizer","owner":"subodh101","description":"Simple python package to identify optimal bet size and odds using basic Kelly Criterion and Expected Values.","archived":false,"fork":false,"pushed_at":"2023-11-22T08:00:06.000Z","size":15,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T11:07:41.651Z","etag":null,"topics":["betting","expected-value","kelly-criterion","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subodh101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-14T13:58:26.000Z","updated_at":"2025-03-16T17:46:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"919905f4-08a8-4f1c-b527-27e0688ac73a","html_url":"https://github.com/subodh101/bet-optimizer","commit_stats":null,"previous_names":["subodh101/bet-optimizer"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subodh101%2Fbet-optimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subodh101%2Fbet-optimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subodh101%2Fbet-optimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subodh101%2Fbet-optimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subodh101","download_url":"https://codeload.github.com/subodh101/bet-optimizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217083,"owners_count":21066633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["betting","expected-value","kelly-criterion","python"],"created_at":"2024-11-09T12:41:12.688Z","updated_at":"2025-04-10T12:15:14.207Z","avatar_url":"https://github.com/subodh101.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# bet-optimizer\n\n`bet-optimizer` is a Python package designed for those interested in applying mathematical strategies to betting. It leverages the Kelly Criterion and the concept of positive expected value (EV) in betting, helping users calculate the optimal bet size and the minimum positive odds required for a bet to have a positive expected value.\n\n## Features\n\n- **Kelly Criterion Bet Calculation**: Calculate the optimal fraction of your bankroll to bet based on your probability of winning and the odds offered.\n- **Positive Odds Calculation**: Determine the minimum positive odds required for a bet to have a positive expected value, based on the probability of winning.\n\n## Installation\n\nThe package can be easily installed via pip. Just run the following command in your terminal:\n\n```bash\npip install bet-optimizer\n```\n\n## Usage\n\n### Kelly Criterion Bet Size Calculation\n\nTo calculate the optimal bet size using the Kelly Criterion:\n\n```python\nfrom bet_optimizer import kelly_criterion_bet\n\nprobability = 0.5  # Probability of winning the bet\nodds = 2.0  # Decimal odds of the bet\nbankroll = 100  # Size of your current bankroll\n\nbet_size = kelly_criterion_bet(probability, odds, bankroll)\nprint(f\"Optimal Bet Size: {bet_size}\")\n```\n\n### Positive Odds Calculation\n\nTo calculate the minimum positive odds required for a bet:\n\n```python\nfrom bet_optimizer import get_positive_odds\n\nprobability = 0.5  # Probability of winning the bet\n\npositive_odds = get_positive_odds(probability)\nprint(f\"Minimum Positive Odds: {positive_odds}\")\n```\n\n## Requirements\n\n- Python 3.6 or later.\n\n## License\n\nThis project is licensed under the Apache License - see the [LICENSE](https://github.com/subodh101/bet-optimizer/blob/main/LICENSE) file for details.\n\n## Contributions\n\nContributions are welcome! Please feel free to submit a pull request or open an issue.\n\n## Support\n\nIf you encounter any problems or have any questions, please open an issue on the project's [GitHub page](https://github.com/subodh101/bet-optimizer).\n\n## More Information\n\nFor more information and to download the package, visit [bet-optimizer on PyPI](https://pypi.org/project/bet-optimizer/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubodh101%2Fbet-optimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubodh101%2Fbet-optimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubodh101%2Fbet-optimizer/lists"}