hikyuu 2.6.0__py3-none-win_amd64.whl → 2.6.2__py3-none-win_amd64.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.
Files changed (89) hide show
  1. hikyuu/__init__.py +19 -50
  2. hikyuu/__init__.pyi +530 -525
  3. hikyuu/analysis/__init__.pyi +498 -497
  4. hikyuu/analysis/analysis.pyi +499 -498
  5. hikyuu/core.pyi +500 -499
  6. hikyuu/cpp/__init__.pyi +2 -2
  7. hikyuu/cpp/boost_date_time-mt.dll +0 -0
  8. hikyuu/cpp/boost_serialization-mt.dll +0 -0
  9. hikyuu/cpp/boost_wserialization-mt.dll +0 -0
  10. hikyuu/cpp/core310.pyd +0 -0
  11. hikyuu/cpp/core310.pyi +60 -8
  12. hikyuu/cpp/core311.pyd +0 -0
  13. hikyuu/cpp/core311.pyi +60 -8
  14. hikyuu/cpp/core312.pyd +0 -0
  15. hikyuu/cpp/core312.pyi +60 -8
  16. hikyuu/cpp/core313.pyd +0 -0
  17. hikyuu/cpp/core313.pyi +60 -8
  18. hikyuu/cpp/core39.pyd +0 -0
  19. hikyuu/cpp/core39.pyi +60 -8
  20. hikyuu/cpp/hikyuu.dll +0 -0
  21. hikyuu/cpp/hikyuu.lib +0 -0
  22. hikyuu/cpp/sqlite3.dll +0 -0
  23. hikyuu/draw/drawplot/__init__.pyi +9 -9
  24. hikyuu/draw/drawplot/bokeh_draw.pyi +519 -514
  25. hikyuu/draw/drawplot/common.pyi +1 -1
  26. hikyuu/draw/drawplot/echarts_draw.pyi +521 -516
  27. hikyuu/draw/drawplot/matplotlib_draw.pyi +531 -526
  28. hikyuu/draw/elder.pyi +11 -11
  29. hikyuu/draw/kaufman.pyi +18 -18
  30. hikyuu/draw/volume.pyi +10 -10
  31. hikyuu/extend.py +0 -14
  32. hikyuu/extend.pyi +506 -509
  33. hikyuu/gui/HikyuuTDX.py +66 -12
  34. hikyuu/gui/data/ImportQmtToH5Task.py +209 -0
  35. hikyuu/gui/data/ImportTdxToH5Task.py +8 -1
  36. hikyuu/gui/data/MainWindow.py +68 -50
  37. hikyuu/gui/data/UseQmtImportToH5Thread.py +316 -0
  38. hikyuu/gui/data/UseTdxImportToH5Thread.py +221 -65
  39. hikyuu/gui/importdata.py +24 -11
  40. hikyuu/hub.pyi +6 -6
  41. hikyuu/include/hikyuu/KData.h +5 -0
  42. hikyuu/include/hikyuu/KDataImp.h +4 -0
  43. hikyuu/include/hikyuu/data_driver/kdata/mysql/KRecordTable.h +41 -2
  44. hikyuu/include/hikyuu/indicator/crt/CONTEXT.h +6 -2
  45. hikyuu/include/hikyuu/indicator/crt/COUNT.h +3 -3
  46. hikyuu/include/hikyuu/indicator/crt/DISCARD.h +1 -1
  47. hikyuu/include/hikyuu/indicator/crt/ISINF.h +1 -1
  48. hikyuu/include/hikyuu/indicator/crt/ISINFA.h +1 -1
  49. hikyuu/include/hikyuu/indicator/crt/ISNA.h +1 -1
  50. hikyuu/include/hikyuu/indicator/crt/LAST.h +2 -2
  51. hikyuu/include/hikyuu/indicator/crt/MAX.h +1 -1
  52. hikyuu/include/hikyuu/indicator/crt/MIN.h +1 -1
  53. hikyuu/include/hikyuu/indicator/crt/PRICELIST.h +1 -15
  54. hikyuu/include/hikyuu/indicator/crt/SUMBARS.h +1 -1
  55. hikyuu/include/hikyuu/plugin/KDataToHdf5Importer.h +33 -0
  56. hikyuu/include/hikyuu/plugin/interface/ImportKDataToHdf5PluginInterface.h +33 -0
  57. hikyuu/include/hikyuu/plugin/interface/plugins.h +2 -0
  58. hikyuu/include/hikyuu/strategy/Strategy.h +3 -6
  59. hikyuu/include/hikyuu/trade_sys/portfolio/Portfolio.h +2 -1
  60. hikyuu/include/hikyuu/trade_sys/selector/SelectorBase.h +12 -9
  61. hikyuu/include/hikyuu/trade_sys/selector/imp/MultiFactorSelector.h +1 -1
  62. hikyuu/include/hikyuu/trade_sys/selector/imp/logic/OperatorSelector.h +12 -12
  63. hikyuu/include/hikyuu/trade_sys/selector/imp/logic/OperatorValueSelector.h +2 -2
  64. hikyuu/include/hikyuu/trade_sys/selector/imp/optimal/PerformanceOptimalSelector.h +1 -1
  65. hikyuu/include/hikyuu/trade_sys/system/System.h +12 -3
  66. hikyuu/include/hikyuu/trade_sys/system/imp/DelegateSystem.h +0 -1
  67. hikyuu/include/hikyuu/trade_sys/system/imp/WalkForwardSystem.h +0 -1
  68. hikyuu/include/hikyuu/utilities/arithmetic.h +32 -22
  69. hikyuu/include/hikyuu/utilities/datetime/Datetime.h +1 -0
  70. hikyuu/include/hikyuu/version.h +4 -4
  71. hikyuu/plugin/backtest.dll +0 -0
  72. hikyuu/plugin/dataserver.dll +0 -0
  73. hikyuu/plugin/device.dll +0 -0
  74. hikyuu/plugin/import2hdf5.dll +0 -0
  75. hikyuu/trade_manage/__init__.pyi +518 -513
  76. hikyuu/trade_manage/broker.pyi +3 -3
  77. hikyuu/trade_manage/broker_easytrader.pyi +1 -1
  78. hikyuu/trade_manage/trade.pyi +518 -513
  79. hikyuu/util/__init__.py +1 -0
  80. hikyuu/util/__init__.pyi +3 -2
  81. hikyuu/util/mylog.py +30 -3
  82. hikyuu/util/mylog.pyi +3 -1
  83. hikyuu/util/singleton.pyi +1 -1
  84. {hikyuu-2.6.0.dist-info → hikyuu-2.6.2.dist-info}/METADATA +1 -1
  85. {hikyuu-2.6.0.dist-info → hikyuu-2.6.2.dist-info}/RECORD +89 -84
  86. {hikyuu-2.6.0.dist-info → hikyuu-2.6.2.dist-info}/LICENSE +0 -0
  87. {hikyuu-2.6.0.dist-info → hikyuu-2.6.2.dist-info}/WHEEL +0 -0
  88. {hikyuu-2.6.0.dist-info → hikyuu-2.6.2.dist-info}/entry_points.txt +0 -0
  89. {hikyuu-2.6.0.dist-info → hikyuu-2.6.2.dist-info}/top_level.txt +0 -0
hikyuu/__init__.py CHANGED
@@ -1,31 +1,12 @@
1
1
  #!/usr/bin/python
2
2
  # -*- coding: utf8 -*-
3
3
  # cp936
4
- #
5
- # The MIT License (MIT)
6
- #
7
- # Copyright (c) 2010-2017 fasiondog
8
- #
9
- # Permission is hereby granted, free of charge, to any person obtaining a copy
10
- # of this software and associated documentation files (the "Software"), to deal
11
- # in the Software without restriction, including without limitation the rights
12
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- # copies of the Software, and to permit persons to whom the Software is
14
- # furnished to do so, subject to the following conditions:
15
- #
16
- # The above copyright notice and this permission notice shall be included in all
17
- # copies or substantial portions of the Software.
18
- #
19
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- # SOFTWARE.
26
4
 
5
+ from pathlib import Path
6
+ import pickle
7
+ import traceback
27
8
  __copyright__ = """
28
- MIT License
9
+ Apache License Version 2.0
29
10
 
30
11
  Copyright (c) 2010-2017 fasiondog
31
12
 
@@ -48,11 +29,23 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
48
29
  SOFTWARE.
49
30
  """
50
31
 
51
- import traceback
52
32
  import sys
53
- import pickle
54
33
  import os
55
- from pathlib import Path
34
+ BASE_DIR = os.path.dirname(__file__)
35
+ if sys.platform == 'win32':
36
+ # add_dll_directory() 有时不生效
37
+ os.add_dll_directory(os.path.join(os.path.dirname(__file__), 'cpp'))
38
+ # 添加动态库所在的目录路径
39
+ current_path = os.environ.get('PATH', '')
40
+ dll_directory = os.path.join(BASE_DIR, 'cpp')
41
+ new_path = f"{dll_directory};{current_path}"
42
+ os.environ['PATH'] = new_path
43
+ else:
44
+ current_path = os.environ.get('LD_LIBRARY_PATH', '')
45
+ dll_directory = os.path.join(BASE_DIR, 'cpp')
46
+ new_path = f"{dll_directory}:{current_path}" if current_path else dll_directory
47
+ os.environ['LD_LIBRARY_PATH'] = new_path
48
+
56
49
 
57
50
  try:
58
51
  from .util import *
@@ -75,30 +68,6 @@ except Exception as e:
75
68
  raise e
76
69
 
77
70
 
78
- __copyright__ = """
79
- MIT License
80
-
81
- Copyright (c) 2010-2017 fasiondog
82
-
83
- Permission is hereby granted, free of charge, to any person obtaining a copy
84
- of this software and associated documentation files (the "Software"), to deal
85
- in the Software without restriction, including without limitation the rights
86
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
87
- copies of the Software, and to permit persons to whom the Software is
88
- furnished to do so, subject to the following conditions:
89
-
90
- The above copyright notice and this permission notice shall be included in all
91
- copies or substantial portions of the Software.
92
-
93
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
94
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
95
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
96
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
97
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
98
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
99
- SOFTWARE.
100
- """
101
-
102
71
  __version__ = get_version()
103
72
 
104
73
  sm = StockManager.instance()