A series of useful functions in betting.
Project description
odds-helpers
Functions
| Function | Parameters | Aliases | Description |
|---|---|---|---|
moneyline_to_prob |
ml, places=2 |
to_p, to_prob, ml_to_p, ml_to_prob |
Converts a moneyline to implied probability |
prob_to_moneyline |
prob |
to_ml, p_to_ml, prob_to_ml |
Converts a probability to moneyline format |
remove_vig |
prob1, prob2 |
no_vig |
Removes the vig from two probabilities, returning fair odds |
total_juice |
ml1, ml2 |
juice |
Calculates the total juice/vig from two moneylines |
payout |
price, wager |
profit |
Calculates the payout for a given price and wager amount |
base_to_risk |
ml, base_amt |
— | Converts a base amount to risk amount based on moneyline |
ml_to_fractional |
ml |
— | Converts moneyline to fractional odds |
get_ev |
ml, est_prob, unit=1, verbose=True |
— | Calculates expected value given moneyline and estimated probability |
get_kelly |
p, ml, verbose=True |
— | Calculates Kelly criterion bet fraction |
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.2.tar.gz
(2.7 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.2.tar.gz.
File metadata
- Download URL: odds_helpers-0.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f44ff778ade3f55ef7c9ff10c52ab7e72bcfb58f11da1d4555b303f38abf73f6
|
|
| MD5 |
2330708e6af488e5abce653c5da7c13b
|
|
| BLAKE2b-256 |
b113bcb970258cbb213d58e3b82f128ed1260b25d0517518c1b68b948d4562ec
|
File details
Details for the file odds_helpers-0.0.2-py3-none-any.whl.
File metadata
- Download URL: odds_helpers-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
46cef08910d1bc81723ee6fc3b96ab332066fd47045ee01d25c2538937641f8e
|
|
| MD5 |
37b576e9bffd587740681fb922120982
|
|
| BLAKE2b-256 |
a78fbc27f183194facc5ad1f46ffc22318ef6978fa3f6af57e0c94c98de72056
|