hkjc 0.3.5__tar.gz → 0.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hkjc-0.3.5 → hkjc-0.3.7}/PKG-INFO +1 -1
- {hkjc-0.3.5 → hkjc-0.3.7}/pyproject.toml +1 -1
- {hkjc-0.3.5 → hkjc-0.3.7}/src/hkjc/live_odds.py +1 -1
- {hkjc-0.3.5 → hkjc-0.3.7}/src/hkjc/processing.py +1 -1
- {hkjc-0.3.5 → hkjc-0.3.7}/uv.lock +1 -1
- {hkjc-0.3.5 → hkjc-0.3.7}/.python-version +0 -0
- {hkjc-0.3.5 → hkjc-0.3.7}/README.md +0 -0
- {hkjc-0.3.5 → hkjc-0.3.7}/src/hkjc/__init__.py +0 -0
- {hkjc-0.3.5 → hkjc-0.3.7}/src/hkjc/harville_model.py +0 -0
- {hkjc-0.3.5 → hkjc-0.3.7}/src/hkjc/historical.py +0 -0
- {hkjc-0.3.5 → hkjc-0.3.7}/src/hkjc/optimization.py +0 -0
- {hkjc-0.3.5 → hkjc-0.3.7}/src/hkjc/py.typed +0 -0
- {hkjc-0.3.5 → hkjc-0.3.7}/src/hkjc/qpbanker.py +0 -0
- {hkjc-0.3.5 → hkjc-0.3.7}/src/hkjc/speedpro.py +0 -0
@@ -112,7 +112,7 @@ def live_odds(date: str, venue_code: str, race_number: int, odds_type: List[str]
|
|
112
112
|
except Exception:
|
113
113
|
raise ValueError("Date must be in 'YYYY-MM-DD' format")
|
114
114
|
|
115
|
-
mandatory_types =
|
115
|
+
mandatory_types = ['WIN','PLA','QIN','QPL'] if fit_harville else ['PLA']
|
116
116
|
|
117
117
|
data = _fetch_live_odds(date, venue_code, race_number,
|
118
118
|
odds_type=tuple(set(mandatory_types+odds_type)))
|
@@ -69,7 +69,7 @@ def generate_pareto_qp_trades(date: str, venue_code: str, race_number: int, reba
|
|
69
69
|
Returns:
|
70
70
|
pl.DataFrame: DataFrame with all Pareto trades and their metrics.
|
71
71
|
"""
|
72
|
-
df = generate_all_qp_trades(date, venue_code, race_number, rebate,
|
72
|
+
df = generate_all_qp_trades(date, venue_code, race_number, rebate, fit_harville=fit_harville)
|
73
73
|
pareto_df = _pareto_filter(df, groupby=groupby, by=[
|
74
74
|
'WinProb', 'ExpValue'], maximize=True)
|
75
75
|
return pareto_df
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|