hikyuu 2.6.8__py3-none-win_amd64.whl → 2.6.8.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 (54) hide show
  1. hikyuu/__init__.pyi +652 -649
  2. hikyuu/analysis/__init__.pyi +563 -563
  3. hikyuu/analysis/analysis.pyi +584 -582
  4. hikyuu/core.pyi +563 -563
  5. hikyuu/cpp/__init__.pyi +2 -2
  6. hikyuu/cpp/core310.pyd +0 -0
  7. hikyuu/cpp/core310.pyi +11 -0
  8. hikyuu/cpp/core311.pyd +0 -0
  9. hikyuu/cpp/core311.pyi +11 -0
  10. hikyuu/cpp/core312.pyd +0 -0
  11. hikyuu/cpp/core312.pyi +11 -0
  12. hikyuu/cpp/core313.pyd +0 -0
  13. hikyuu/cpp/core313.pyi +11 -0
  14. hikyuu/cpp/core39.pyd +0 -0
  15. hikyuu/cpp/core39.pyi +11 -0
  16. hikyuu/cpp/hikyuu.dll +0 -0
  17. hikyuu/cpp/hikyuu.lib +0 -0
  18. hikyuu/draw/drawplot/__init__.pyi +36 -31
  19. hikyuu/draw/drawplot/bokeh_draw.pyi +658 -647
  20. hikyuu/draw/drawplot/common.pyi +4 -3
  21. hikyuu/draw/drawplot/echarts_draw.pyi +593 -594
  22. hikyuu/draw/drawplot/matplotlib_draw.pyi +900 -868
  23. hikyuu/draw/elder.pyi +20 -19
  24. hikyuu/draw/kaufman.pyi +18 -18
  25. hikyuu/draw/volume.pyi +10 -10
  26. hikyuu/extend.pyi +597 -593
  27. hikyuu/hub.pyi +67 -69
  28. hikyuu/include/hikyuu/KData.h +8 -0
  29. hikyuu/include/hikyuu/python/pybind_utils.h +8 -0
  30. hikyuu/include/hikyuu/version.h +2 -2
  31. hikyuu/plugin/backtest.dll +0 -0
  32. hikyuu/plugin/clickhousedriver.dll +0 -0
  33. hikyuu/plugin/dataserver.dll +0 -0
  34. hikyuu/plugin/extind.dll +0 -0
  35. hikyuu/plugin/hkuextra.dll +0 -0
  36. hikyuu/plugin/import2hdf5.dll +0 -0
  37. hikyuu/plugin/tmreport.dll +0 -0
  38. hikyuu/trade_manage/__init__.pyi +579 -579
  39. hikyuu/trade_manage/broker.pyi +18 -19
  40. hikyuu/trade_manage/broker_easytrader.pyi +4 -6
  41. hikyuu/trade_manage/broker_mail.pyi +24 -22
  42. hikyuu/trade_manage/trade.pyi +579 -579
  43. hikyuu/util/__init__.pyi +1 -1
  44. hikyuu/util/check.pyi +15 -17
  45. hikyuu/util/mylog.pyi +7 -8
  46. hikyuu/util/notebook.pyi +11 -9
  47. hikyuu/util/singleton.pyi +6 -8
  48. {hikyuu-2.6.8.dist-info → hikyuu-2.6.8.2.dist-info}/METADATA +14 -4
  49. {hikyuu-2.6.8.dist-info → hikyuu-2.6.8.2.dist-info}/RECORD +52 -54
  50. {hikyuu-2.6.8.dist-info → hikyuu-2.6.8.2.dist-info}/WHEEL +1 -1
  51. hikyuu/setup.py +0 -104
  52. hikyuu-2.6.8.dist-info/LICENSE +0 -201
  53. {hikyuu-2.6.8.dist-info → hikyuu-2.6.8.2.dist-info}/entry_points.txt +0 -0
  54. {hikyuu-2.6.8.dist-info → hikyuu-2.6.8.2.dist-info}/top_level.txt +0 -0
@@ -1,30 +1,30 @@
1
1
  from __future__ import annotations
2
- import hikyuu.cpp.core313
3
- from hikyuu.cpp.core313 import OrderBrokerBase
2
+ import hikyuu.cpp.core39
3
+ from hikyuu.cpp.core39 import OrderBrokerBase
4
4
  from hikyuu.util.mylog import hku_error
5
5
  import json as json
6
- import typing
7
6
  __all__ = ['OrderBrokerBase', 'OrderBrokerWrap', 'TestOrderBroker', 'crtOB', 'hku_error', 'json']
8
- class OrderBrokerWrap(hikyuu.cpp.core313.OrderBrokerBase):
7
+ class OrderBrokerWrap(hikyuu.cpp.core39.OrderBrokerBase):
9
8
  """
10
9
  订单代理包装类,用户可以参考自定义自己的订单代理,加入额外的处理
11
- 包装只有买卖操作参数只有(code, price, num)的交易接口类
10
+ 包装只有买卖操作参数只有(code, price, num)的交易接口类
11
+
12
12
  """
13
- __firstlineno__: typing.ClassVar[int] = 37
14
- __static_attributes__: typing.ClassVar[tuple] = ('_broker')
15
13
  def __init__(self, broker, name):
16
14
  """
17
15
 
18
- 订单代理包装类,用户可以参考自定义自己的订单代理,加入额外的处理
16
+ 订单代理包装类,用户可以参考自定义自己的订单代理,加入额外的处理
17
+
19
18
  """
20
19
  def _buy(self, datetime, market, code, price, num, stoploss, goal_price, part_from, remark = ''):
21
20
  """
22
21
 
23
- 实现 OrderBrokerBase 的 _buy 接口
24
- :param str market: 证券市场
25
- :param str code: 证券代码
26
- :param float price: 买入价格
27
- :param int num: 买入数量
22
+ 实现 OrderBrokerBase 的 _buy 接口
23
+ :param str market: 证券市场
24
+ :param str code: 证券代码
25
+ :param float price: 买入价格
26
+ :param int num: 买入数量
27
+
28
28
  """
29
29
  def _get_asset_info(self):
30
30
  ...
@@ -36,8 +36,6 @@ class TestOrderBroker:
36
36
  """
37
37
  用于测试的订单代理,仅在执行买入/卖出时打印信息
38
38
  """
39
- __firstlineno__: typing.ClassVar[int] = 74
40
- __static_attributes__: typing.ClassVar[tuple] = tuple()
41
39
  def __init__(self):
42
40
  ...
43
41
  def buy(self, market, code, price, num, stoploss, goal_price, part_from, remark = ''):
@@ -47,9 +45,10 @@ class TestOrderBroker:
47
45
  def crtOB(broker, name = 'NO_NAME'):
48
46
  """
49
47
 
50
- 快速生成订单代理包装对象
48
+ 快速生成订单代理包装对象
51
49
 
52
- :param broker: 订单代理示例,必须拥有buy和sell方法,并且参数为 code, price, num
53
- :param float slip: 如果当前的卖一价格和指示买入的价格绝对差值不超过slip则下单,
54
- 否则忽略; 对卖出操作无效,立即以当前价卖出
50
+ :param broker: 订单代理示例,必须拥有buy和sell方法,并且参数为 code, price, num
51
+ :param float slip: 如果当前的卖一价格和指示买入的价格绝对差值不超过slip则下单,
52
+ 否则忽略; 对卖出操作无效,立即以当前价卖出
53
+
55
54
  """
@@ -1,16 +1,14 @@
1
1
  from __future__ import annotations
2
- from hikyuu.cpp.core313 import Datetime
2
+ from hikyuu.cpp.core39 import Datetime
3
3
  from hikyuu.util.mylog import hku_info
4
- import typing
5
4
  __all__ = ['Datetime', 'EasyTraderOrderBroker', 'hku_info']
6
5
  class EasyTraderOrderBroker:
7
6
  """
8
7
 
9
- 使用华泰客户端实例
10
- 注意:buy|sell 中已屏蔽实际通过easytrade下单,防止调试误操作,请自行根据需要打开
8
+ 使用华泰客户端实例
9
+ 注意:buy|sell 中已屏蔽实际通过easytrade下单,防止调试误操作,请自行根据需要打开
10
+
11
11
  """
12
- __firstlineno__: typing.ClassVar[int] = 10
13
- __static_attributes__: typing.ClassVar[tuple] = ('buffer', 'user')
14
12
  def __init__(self, user):
15
13
  ...
16
14
  def buy(self, market, code, price, num, stoploss, goal_price, part_from, remark = ''):
@@ -2,52 +2,54 @@ from __future__ import annotations
2
2
  from email.header import Header
3
3
  from email.mime.text import MIMEText
4
4
  import smtplib as smtplib
5
- import typing
6
5
  __all__ = ['Header', 'MIMEText', 'MailOrderBroker', 'smtplib']
7
6
  class MailOrderBroker:
8
7
  """
9
8
 
10
- 邮件订单代理
9
+ 邮件订单代理
10
+
11
11
  """
12
- __firstlineno__: typing.ClassVar[int] = 37
13
- __static_attributes__: typing.ClassVar[tuple] = ('_host', '_pwd', '_receivers', '_sender')
14
12
  def __init__(self, host, sender, pwd, receivers):
15
13
  """
16
14
 
17
- 邮件订单代理,执行买入/卖出操作时发送 Email
15
+ 邮件订单代理,执行买入/卖出操作时发送 Email
18
16
 
19
- :param str host: smtp服务器地址
20
- :param int port: smtp服务器端口
21
- :param str sender: 发件邮箱(既用户名)
22
- :param str pwd: 密码
23
- :param list receivers: 接受者邮箱列表
17
+ :param str host: smtp服务器地址
18
+ :param int port: smtp服务器端口
19
+ :param str sender: 发件邮箱(既用户名)
20
+ :param str pwd: 密码
21
+ :param list receivers: 接受者邮箱列表
22
+
24
23
  """
25
24
  def _sendmail(self, title, msg):
26
25
  """
27
26
  发送邮件
28
27
 
29
- :param str title: 邮件标题
30
- :param str msg: 邮件内容
28
+ :param str title: 邮件标题
29
+ :param str msg: 邮件内容
30
+
31
31
  """
32
32
  def buy(self, market, code, price, num, stoploss, goal_price, part_from, remark = ''):
33
33
  """
34
34
  执行买入操作,向指定的邮箱发送邮件,格式如下::
35
35
 
36
- 邮件标题:【Hkyuu提醒】买入 证券代码
37
- 邮件内容:买入:证券代码,价格:买入的价格,数量:买入数量
36
+ 邮件标题:【Hkyuu提醒】买入 证券代码
37
+ 邮件内容:买入:证券代码,价格:买入的价格,数量:买入数量
38
38
 
39
- :param str code: 证券代码
40
- :param float price: 买入价格
41
- :param int num: 买入数量
39
+ :param str code: 证券代码
40
+ :param float price: 买入价格
41
+ :param int num: 买入数量
42
+
42
43
  """
43
44
  def sell(self, market, code, price, num, stoploss, goal_price, part_from, remark = ''):
44
45
  """
45
46
  执行卖出操作,向指定的邮箱发送邮件,格式如下::
46
47
 
47
- 邮件标题:【Hkyuu提醒】卖出 证券代码
48
- 邮件内容:卖出:证券代码,价格:卖出的价格,数量:卖出数量
48
+ 邮件标题:【Hkyuu提醒】卖出 证券代码
49
+ 邮件内容:卖出:证券代码,价格:卖出的价格,数量:卖出数量
49
50
 
50
- :param str code: 证券代码
51
- :param float price: 卖出价格
52
- :param int num: 卖出数量
51
+ :param str code: 证券代码
52
+ :param float price: 卖出价格
53
+ :param int num: 卖出数量
54
+
53
55
  """