A series of useful functions in betting.
Project description
odds-helpers
Functions
| Function | Parameters | Description |
|---|---|---|
moneyline_to_prob |
ml, places=2 |
Converts a moneyline to implied probability |
prob_to_moneyline |
prob |
Converts a probability to moneyline format |
remove_vig |
prob1, prob2 |
Removes the vig from two probabilities, returning fair odds |
total_juice |
ml1, ml2 |
Calculates the total juice/vig from two moneylines |
payout |
price, wager |
Calculates the payout for a given price and wager amount |
base_to_risk |
ml, risk_amt |
Converts a base risk amount based on moneyline |
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
odds_helpers-0.0.1.tar.gz
(2.1 kB
view details)
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_helpers-0.0.1.tar.gz.
File metadata
- Download URL: odds_helpers-0.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11c56c602fff7adc1faa9328cf60c0a37e0bfa70b41f0a267182a92e49689771
|
|
| MD5 |
dde591f45dc5e356be7a3c1e42e19f83
|
|
| BLAKE2b-256 |
d9e76f3ec5a11e83f0c4d56f3ee80fed68b1b84d6f93d9cdb79cf2a254084e7d
|
File details
Details for the file odds_helpers-0.0.1-py3-none-any.whl.
File metadata
- Download URL: odds_helpers-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b10d16f6a787cad1e4be6746fab3e96ee09141b4343b9da9d1308bfdf51c442a
|
|
| MD5 |
1706e577b2c21070a99d61459eac9374
|
|
| BLAKE2b-256 |
69f018e304981e6d00f4b2372e5ea3988ca9c39c98867c0b1b6fd46d163065f5
|