hikyuu 2.5.1__py3-none-win_amd64.whl → 2.5.3__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 +5 -1
  2. hikyuu/__init__.pyi +522 -505
  3. hikyuu/analysis/__init__.pyi +489 -478
  4. hikyuu/analysis/analysis.pyi +490 -479
  5. hikyuu/core.pyi +491 -480
  6. hikyuu/cpp/__init__.pyi +3 -0
  7. hikyuu/cpp/core310.pyd +0 -0
  8. hikyuu/cpp/core310.pyi +13154 -0
  9. hikyuu/cpp/core311.pyd +0 -0
  10. hikyuu/cpp/core311.pyi +13154 -0
  11. hikyuu/cpp/core312.pyd +0 -0
  12. hikyuu/cpp/core312.pyi +13154 -0
  13. hikyuu/cpp/core313.pyd +0 -0
  14. hikyuu/cpp/core313.pyi +13132 -0
  15. hikyuu/cpp/core38.pyd +0 -0
  16. hikyuu/cpp/core38.pyi +13154 -0
  17. hikyuu/cpp/core39.pyd +0 -0
  18. hikyuu/cpp/core39.pyi +13154 -0
  19. hikyuu/cpp/hikyuu.dll +0 -0
  20. hikyuu/cpp/hikyuu.lib +0 -0
  21. hikyuu/data/mysql_upgrade/0027.sql +6 -0
  22. hikyuu/data/pytdx_to_h5.py +7 -4
  23. hikyuu/data/pytdx_to_mysql.py +7 -4
  24. hikyuu/data/sqlite_upgrade/0027.sql +8 -0
  25. hikyuu/draw/drawplot/__init__.py +8 -1
  26. hikyuu/draw/drawplot/__init__.pyi +11 -7
  27. hikyuu/draw/drawplot/bokeh_draw.pyi +510 -495
  28. hikyuu/draw/drawplot/common.pyi +1 -1
  29. hikyuu/draw/drawplot/echarts_draw.pyi +512 -497
  30. hikyuu/draw/drawplot/matplotlib_draw.py +134 -12
  31. hikyuu/draw/drawplot/matplotlib_draw.pyi +571 -509
  32. hikyuu/draw/elder.pyi +11 -11
  33. hikyuu/draw/kaufman.pyi +18 -18
  34. hikyuu/draw/volume.pyi +10 -10
  35. hikyuu/extend.py +0 -24
  36. hikyuu/extend.pyi +500 -506
  37. hikyuu/hub.py +154 -9
  38. hikyuu/hub.pyi +51 -13
  39. hikyuu/include/hikyuu/DataType.h +1 -2
  40. hikyuu/include/hikyuu/StockManager.h +2 -1
  41. hikyuu/include/hikyuu/StrategyContext.h +12 -3
  42. hikyuu/include/hikyuu/indicator/Indicator.h +24 -0
  43. hikyuu/include/hikyuu/indicator/Indicator2InImp.h +1 -0
  44. hikyuu/include/hikyuu/indicator/build_in.h +2 -0
  45. hikyuu/include/hikyuu/indicator/crt/ATR.h +2 -13
  46. hikyuu/include/hikyuu/indicator/crt/KALMAN.h +30 -0
  47. hikyuu/include/hikyuu/indicator/crt/TR.h +32 -0
  48. hikyuu/include/hikyuu/indicator/imp/IAtr.h +3 -1
  49. hikyuu/include/hikyuu/indicator/imp/IKalman.h +27 -0
  50. hikyuu/include/hikyuu/indicator/imp/ITr.h +35 -0
  51. hikyuu/include/hikyuu/python/convert_any.h +299 -0
  52. hikyuu/include/hikyuu/trade_manage/PositionRecord.h +8 -2
  53. hikyuu/include/hikyuu/trade_sys/allocatefunds/crt/AF_MultiFactor.h +1 -1
  54. hikyuu/include/hikyuu/trade_sys/allocatefunds/imp/MultiFactorAllocaterFunds.h +3 -0
  55. hikyuu/include/hikyuu/trade_sys/condition/ConditionBase.h +4 -1
  56. hikyuu/include/hikyuu/trade_sys/condition/imp/{SubCondition.h → logic/SubCondition.h} +1 -1
  57. hikyuu/include/hikyuu/trade_sys/environment/EnvironmentBase.h +20 -6
  58. hikyuu/include/hikyuu/trade_sys/environment/build_in.h +1 -0
  59. hikyuu/include/hikyuu/trade_sys/environment/crt/EV_Logic.h +35 -0
  60. hikyuu/include/hikyuu/trade_sys/environment/imp/logic/AddEnvironment.h +42 -0
  61. hikyuu/include/hikyuu/trade_sys/environment/imp/logic/AndEnvironment.h +42 -0
  62. hikyuu/include/hikyuu/trade_sys/environment/imp/logic/DivEnvironment.h +42 -0
  63. hikyuu/include/hikyuu/trade_sys/environment/imp/logic/MultiEnvironment.h +42 -0
  64. hikyuu/include/hikyuu/trade_sys/environment/imp/logic/OrEnvironment.h +42 -0
  65. hikyuu/include/hikyuu/trade_sys/environment/imp/logic/SubEnvironment.h +42 -0
  66. hikyuu/include/hikyuu/trade_sys/environment/imp/logic/__init__.py +1 -0
  67. hikyuu/include/hikyuu/trade_sys/portfolio/Portfolio.h +0 -4
  68. hikyuu/include/hikyuu/trade_sys/signal/SignalBase.h +1 -7
  69. hikyuu/include/hikyuu/trade_sys/signal/crt/SG_Logic.h +94 -4
  70. hikyuu/include/hikyuu/trade_sys/signal/crt/SG_OneSide.h +10 -0
  71. hikyuu/include/hikyuu/trade_sys/signal/imp/logic/AndSignal.h +19 -0
  72. hikyuu/include/hikyuu/trade_sys/signal/imp/logic/OperatorSignal.h +3 -1
  73. hikyuu/include/hikyuu/trade_sys/signal/imp/logic/OperatorValueSignal.h +1 -0
  74. hikyuu/include/hikyuu/trade_sys/signal/imp/logic/OrSignal.h +19 -0
  75. hikyuu/include/hikyuu/version.h +4 -4
  76. hikyuu/indicator/indicator.py +1 -0
  77. hikyuu/trade_manage/__init__.pyi +506 -495
  78. hikyuu/trade_manage/broker.pyi +3 -3
  79. hikyuu/trade_manage/broker_easytrader.pyi +1 -1
  80. hikyuu/trade_manage/trade.pyi +506 -495
  81. hikyuu/trade_sys/trade_sys.py +4 -3
  82. hikyuu/util/__init__.pyi +2 -2
  83. hikyuu/util/singleton.pyi +1 -1
  84. {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/METADATA +3 -2
  85. {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/RECORD +89 -65
  86. {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/top_level.txt +1 -0
  87. {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/LICENSE +0 -0
  88. {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/WHEEL +0 -0
  89. {hikyuu-2.5.1.dist-info → hikyuu-2.5.3.dist-info}/entry_points.txt +0 -0
hikyuu/draw/elder.pyi CHANGED
@@ -4,15 +4,15 @@
4
4
  参见:《走进我的交易室》(2007年 地震出版社) Alexander Elder
5
5
  """
6
6
  from __future__ import annotations
7
- import hikyuu.cpp.core312
8
- from hikyuu.cpp.core312 import CVAL
9
- from hikyuu.cpp.core312 import EMA
10
- from hikyuu.cpp.core312 import Indicator
11
- from hikyuu.cpp.core312 import MACD
12
- from hikyuu.cpp.core312 import PRICELIST
13
- from hikyuu.cpp.core312 import Query
14
- from hikyuu.cpp.core312 import SAFTYLOSS
15
- from hikyuu.cpp.core312 import VIGOR
7
+ import hikyuu.cpp.core38
8
+ from hikyuu.cpp.core38 import CVAL
9
+ from hikyuu.cpp.core38 import EMA
10
+ from hikyuu.cpp.core38 import Indicator
11
+ from hikyuu.cpp.core38 import MACD
12
+ from hikyuu.cpp.core38 import PRICELIST
13
+ from hikyuu.cpp.core38 import Query
14
+ from hikyuu.cpp.core38 import SAFTYLOSS
15
+ from hikyuu.cpp.core38 import VIGOR
16
16
  from hikyuu.draw.drawplot import adjust_axes_show
17
17
  from hikyuu.draw.drawplot import ax_draw_macd2
18
18
  from hikyuu.draw.drawplot import ax_set_locator_formatter
@@ -40,5 +40,5 @@ def draw(stock, query = ..., ma_n = 22, ma_w = 'auto', vigor_n = 13):
40
40
  """
41
41
  绘制亚历山大.艾尔德交易系统图形
42
42
  """
43
- CLOSE: hikyuu.cpp.core312.Indicator # value = Indicator{...
44
- constant: hikyuu.cpp.core312.Constant # value = <hikyuu.cpp.core312.Constant object>
43
+ CLOSE: hikyuu.cpp.core38.Indicator # value = Indicator{...
44
+ constant: hikyuu.cpp.core38.Constant # value = <hikyuu.cpp.core38.Constant object>
hikyuu/draw/kaufman.pyi CHANGED
@@ -4,19 +4,19 @@
4
4
  参见:《精明交易者》(2006年 广东经济出版社)
5
5
  """
6
6
  from __future__ import annotations
7
- import hikyuu.cpp.core312
8
- from hikyuu.cpp.core312 import AMA
9
- from hikyuu.cpp.core312 import BUSINESS
10
- from hikyuu.cpp.core312 import CVAL
11
- from hikyuu.cpp.core312 import EMA
12
- from hikyuu.cpp.core312 import POS
13
- from hikyuu.cpp.core312 import PRICELIST
14
- from hikyuu.cpp.core312 import Query
15
- from hikyuu.cpp.core312 import SG_Cross
16
- from hikyuu.cpp.core312 import SG_Flex
17
- from hikyuu.cpp.core312 import SG_Single
18
- from hikyuu.cpp.core312 import STDEV
19
- from hikyuu.cpp.core312 import StockManager
7
+ import hikyuu.cpp.core38
8
+ from hikyuu.cpp.core38 import AMA
9
+ from hikyuu.cpp.core38 import BUSINESS
10
+ from hikyuu.cpp.core38 import CVAL
11
+ from hikyuu.cpp.core38 import EMA
12
+ from hikyuu.cpp.core38 import POS
13
+ from hikyuu.cpp.core38 import PRICELIST
14
+ from hikyuu.cpp.core38 import Query
15
+ from hikyuu.cpp.core38 import SG_Cross
16
+ from hikyuu.cpp.core38 import SG_Flex
17
+ from hikyuu.cpp.core38 import SG_Single
18
+ from hikyuu.cpp.core38 import STDEV
19
+ from hikyuu.cpp.core38 import StockManager
20
20
  from hikyuu.draw.drawplot import adjust_axes_show
21
21
  from hikyuu.draw.drawplot import ax_draw_macd
22
22
  from hikyuu.draw.drawplot import ax_set_locator_formatter
@@ -31,8 +31,8 @@ def draw2(block, query = ..., ama1 = None, ama2 = None, n = 10, filter_n = 20, f
31
31
  """
32
32
  绘制佩里.J.考夫曼(Perry J.Kaufman) 自适应移动平均系统(AMA)
33
33
  """
34
- CLOSE: hikyuu.cpp.core312.Indicator # value = Indicator{...
35
- HIGH: hikyuu.cpp.core312.Indicator # value = Indicator{...
36
- KDATA: hikyuu.cpp.core312.Indicator # value = Indicator{...
37
- LOW: hikyuu.cpp.core312.Indicator # value = Indicator{...
38
- OPEN: hikyuu.cpp.core312.Indicator # value = Indicator{...
34
+ CLOSE: hikyuu.cpp.core38.Indicator # value = Indicator{...
35
+ HIGH: hikyuu.cpp.core38.Indicator # value = Indicator{...
36
+ KDATA: hikyuu.cpp.core38.Indicator # value = Indicator{...
37
+ LOW: hikyuu.cpp.core38.Indicator # value = Indicator{...
38
+ OPEN: hikyuu.cpp.core38.Indicator # value = Indicator{...
hikyuu/draw/volume.pyi CHANGED
@@ -3,14 +3,14 @@
3
3
  绘制普通K线图 + 成交量(成交金额)
4
4
  """
5
5
  from __future__ import annotations
6
- import hikyuu.cpp.core312
7
- from hikyuu.cpp.core312 import CVAL
8
- from hikyuu.cpp.core312 import IF
9
- from hikyuu.cpp.core312 import Indicator
10
- from hikyuu.cpp.core312 import MA
11
- from hikyuu.cpp.core312 import PRICELIST
12
- from hikyuu.cpp.core312 import Query
13
- from hikyuu.cpp.core312 import SG_Cross
6
+ import hikyuu.cpp.core38
7
+ from hikyuu.cpp.core38 import CVAL
8
+ from hikyuu.cpp.core38 import IF
9
+ from hikyuu.cpp.core38 import Indicator
10
+ from hikyuu.cpp.core38 import MA
11
+ from hikyuu.cpp.core38 import PRICELIST
12
+ from hikyuu.cpp.core38 import Query
13
+ from hikyuu.cpp.core38 import SG_Cross
14
14
  from hikyuu.draw.drawplot import adjust_axes_show
15
15
  from hikyuu.draw.drawplot import ax_draw_macd
16
16
  from hikyuu.draw.drawplot import ax_set_locator_formatter
@@ -27,5 +27,5 @@ def draw2(stock, query = ..., ma1_n = 7, ma2_n = 20, ma3_n = 30, ma4_n = 42, ma5
27
27
  """
28
28
  绘制普通K线图 + 成交量(成交金额)+ MACD
29
29
  """
30
- CLOSE: hikyuu.cpp.core312.Indicator # value = Indicator{...
31
- VOL: hikyuu.cpp.core312.Indicator # value = Indicator{...
30
+ CLOSE: hikyuu.cpp.core38.Indicator # value = Indicator{...
31
+ VOL: hikyuu.cpp.core38.Indicator # value = Indicator{...
hikyuu/extend.py CHANGED
@@ -186,32 +186,8 @@ def KData_iter(kdata):
186
186
  yield kdata[i]
187
187
 
188
188
 
189
- def KData_getPos(kdata, datetime):
190
- """
191
- 获取指定时间对应的索引位置
192
-
193
- :param Datetime datetime: 指定的时间
194
- :return: 对应的索引位置,如果不在数据范围内,则返回 None
195
- """
196
- pos = kdata._getPos(datetime)
197
- return pos if pos != constant.null_size else None
198
-
199
-
200
- def KData_getPosInStock(kdata, datetime):
201
- """
202
- 获取指定时间对应的原始K线中的索引位置
203
-
204
- :param Datetime datetime: 指定的时间
205
- :return: 对应的索引位置,如果不在数据范围内,则返回 None
206
- """
207
- pos = kdata._getPosInStock(datetime)
208
- return pos if pos != constant.null_size else None
209
-
210
-
211
189
  KData.__getitem__ = KData_getitem
212
190
  KData.__iter__ = KData_iter
213
- KData.get_pos = KData_getPos
214
- KData.get_pos_in_stock = KData_getPosInStock
215
191
 
216
192
 
217
193
  # ------------------------------------------------------------------