hkjc 0.3.5__py3-none-any.whl → 0.3.7__py3-none-any.whl

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/live_odds.py CHANGED
@@ -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 = ('WIN','PLA','QIN','QPL') if fit_harville else ('PLA')
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)))
hkjc/processing.py CHANGED
@@ -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, harville_fit=fit_harville)
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hkjc
3
- Version: 0.3.5
3
+ Version: 0.3.7
4
4
  Summary: Library for scrapping HKJC data and perform basic analysis
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: cachetools>=6.2.0
@@ -1,12 +1,12 @@
1
1
  hkjc/__init__.py,sha256=xKkhk53z9aGyGkiwQ_RNc7Qa82lp1Oinyx83m_pBv_E,627
2
2
  hkjc/harville_model.py,sha256=MZjPLS-1nbEhp1d4Syuq13DtraKnd7TlNqBmOOCwxgc,15976
3
3
  hkjc/historical.py,sha256=wKTJi--0Mx_x0vO0ysOGD37oM8453woQK-cLzPOLgiQ,336
4
- hkjc/live_odds.py,sha256=RSx1Ch867KUMJhIyQ3IbhQCL2m1cdhPF9eZXD0EPsCQ,5447
4
+ hkjc/live_odds.py,sha256=m3sO5AIam73Qr2my8aUW4slE7G8xZk6tnMDRPAWS_bs,5447
5
5
  hkjc/optimization.py,sha256=OArQ3w9bwcIV_lTNuE5za6AROoa90xk_gwAoGwQ-8RE,3784
6
- hkjc/processing.py,sha256=1RZi-xPMV_rcfmfDHmd-MVRKL9fDd6XKolD5dzvxaiQ,3307
6
+ hkjc/processing.py,sha256=vU6bO-a11ACqi1MqPppfiDaH-8wba8IFIqo--7HE2hM,3307
7
7
  hkjc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  hkjc/qpbanker.py,sha256=vhvYb5_nGrKgYgre9gGF6tgswovca5C9pZVOPGxEP1Q,4804
9
9
  hkjc/speedpro.py,sha256=Tb8YqWnD7nnRv0I5onnWxGtsRi3bQZZumWnZncT2n4M,1968
10
- hkjc-0.3.5.dist-info/METADATA,sha256=d0Jh9qb4FqNVh-tvo_p-ahjXJB_zWc6fRx5Wkzm3iQ0,413
11
- hkjc-0.3.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
- hkjc-0.3.5.dist-info/RECORD,,
10
+ hkjc-0.3.7.dist-info/METADATA,sha256=FORsh2hdGEvoLXO3sGLTV1s9j3CZrtddeCnyJMe25XI,413
11
+ hkjc-0.3.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
+ hkjc-0.3.7.dist-info/RECORD,,
File without changes