hyperquant 0.1.8__tar.gz → 0.1.9__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.
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "hyperquant"
3
- version = "0.1.8"
3
+ version = "0.1.9"
4
4
  description = "A minimal yet hyper-efficient backtesting framework for quantitative trading"
5
5
  authors = [
6
6
  { name = "MissinA", email = "1421329142@qq.com" }
@@ -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;
@@ -530,7 +530,7 @@ wheels = [
530
530
 
531
531
  [[package]]
532
532
  name = "hyperquant"
533
- version = "0.1.7"
533
+ version = "0.1.8"
534
534
  source = { editable = "." }
535
535
  dependencies = [
536
536
  { name = "aiohttp" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes