hyperquant 0.1.8__py3-none-any.whl → 0.2__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.
hyperquant/db.py CHANGED
@@ -2,7 +2,6 @@ from dataclasses import dataclass
2
2
  import duckdb
3
3
  import pandas as pd
4
4
  from typing import Dict, Optional, Union
5
- from enum import Enum
6
5
  import os
7
6
 
8
7
 
hyperquant/draw.py CHANGED
@@ -845,7 +845,8 @@ def _produce_date_opt_js(
845
845
  let dateInput = document.getElementById('date-input');
846
846
  endDate=dateInput.value;
847
847
  if (endDate.indexOf("-")<0 && endDate.length>=6){{
848
- endDate=endDate.replace(/({{4}})({{2}})({{2}})/, "$1-$2-$3");
848
+ endDate = endDate.replace(/^(\\d{4})(\\d{2})(\\d{2})$/, '$1-$2-$3');
849
+
849
850
  }}
850
851
  to_date(endDate);
851
852
  }});
@@ -895,7 +896,7 @@ def _produce_date_opt_js(
895
896
  """
896
897
  # 如果高度是用%设置的,要监听浏览器窗口大小变化事件实现图表自动变大小
897
898
  if height_type == "%":
898
- resize_js = """
899
+ resize_js = r"""
899
900
  function resize_chart(){{
900
901
  // 获取当前窗口的宽度和高度
901
902
  let width = window.innerWidth;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperquant
3
- Version: 0.1.8
3
+ Version: 0.2
4
4
  Summary: A minimal yet hyper-efficient backtesting framework for quantitative trading
5
5
  Project-URL: Homepage, https://github.com/yourusername/hyperquant
6
6
  Project-URL: Issues, https://github.com/yourusername/hyperquant/issues
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: MIT License
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Topic :: Office/Business :: Financial :: Investment
15
15
  Requires-Python: >=3.9
16
- Requires-Dist: aiohttp>=3.11.16
16
+ Requires-Dist: aiohttp>=3.10.4
17
17
  Requires-Dist: colorama>=0.4.6
18
18
  Requires-Dist: cryptography>=44.0.2
19
19
  Requires-Dist: duckdb>=1.2.2
@@ -1,11 +1,11 @@
1
1
  hyperquant/__init__.py,sha256=ogwPnRZdsCG5VqMpb_BOtmsKW64G9YmZ7t4AMGttLAE,108
2
2
  hyperquant/core.py,sha256=vKv8KElo1eGhr_aw0I-j6ZxPOneDx86KqAoOI-wbq0A,18838
3
- hyperquant/db.py,sha256=Vfa64_jn68M3Ey_9N7nvPxxnTA8I8eErEWoPbs4MYTs,6700
4
- hyperquant/draw.py,sha256=jweENVzf0nWHogzUliwJHI2PgbeQ3V2H749cMJ256k0,54614
3
+ hyperquant/db.py,sha256=i2TjkCbmH4Uxo7UTDvOYBfy973gLcGexdzuT_YcSeIE,6678
4
+ hyperquant/draw.py,sha256=up_lQ3pHeVLoNOyh9vPjgNwjD0M-6_IetSGviQUgjhY,54624
5
5
  hyperquant/logkit.py,sha256=WALpXpIA3Ywr5DxKKK3k5EKubZ2h-ISGfc5dUReQUBQ,7795
6
6
  hyperquant/datavison/_util.py,sha256=92qk4vO856RqycO0YqEIHJlEg-W9XKapDVqAMxe6rbw,533
7
7
  hyperquant/datavison/binance.py,sha256=3yNKTqvt_vUQcxzeX4ocMsI5k6Q6gLZrvgXxAEad6Kc,5001
8
8
  hyperquant/datavison/coinglass.py,sha256=PEjdjISP9QUKD_xzXNzhJ9WFDTlkBrRQlVL-5pxD5mo,10482
9
- hyperquant-0.1.8.dist-info/METADATA,sha256=eperfLCbd-cFi1mHMr8WNHF2XAecfjEvbvIRDPGSuO4,4287
10
- hyperquant-0.1.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- hyperquant-0.1.8.dist-info/RECORD,,
9
+ hyperquant-0.2.dist-info/METADATA,sha256=6p03HReifvxASDUM2W-lYx1GfkrrBEzf4E2n9UsaoK8,4284
10
+ hyperquant-0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ hyperquant-0.2.dist-info/RECORD,,