hyperquant 0.1.8__py3-none-any.whl → 0.1.9__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/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.1.9
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
@@ -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
3
  hyperquant/db.py,sha256=Vfa64_jn68M3Ey_9N7nvPxxnTA8I8eErEWoPbs4MYTs,6700
4
- hyperquant/draw.py,sha256=jweENVzf0nWHogzUliwJHI2PgbeQ3V2H749cMJ256k0,54614
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.1.9.dist-info/METADATA,sha256=J1XOuJiGoIbg0ZyZQCzaQHaAKiYjcRUn34R74xTVdV4,4287
10
+ hyperquant-0.1.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ hyperquant-0.1.9.dist-info/RECORD,,