hikyuu 2.5.5__py3-none-win_amd64.whl → 2.6.0__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.
- hikyuu/__init__.py +15 -0
- hikyuu/__init__.pyi +524 -516
- hikyuu/analysis/__init__.pyi +497 -490
- hikyuu/analysis/analysis.pyi +498 -491
- hikyuu/core.pyi +499 -492
- hikyuu/cpp/__init__.pyi +2 -2
- hikyuu/cpp/core310.pyd +0 -0
- hikyuu/cpp/core310.pyi +153 -21
- hikyuu/cpp/core311.pyd +0 -0
- hikyuu/cpp/core311.pyi +153 -21
- hikyuu/cpp/core312.pyd +0 -0
- hikyuu/cpp/core312.pyi +153 -21
- hikyuu/cpp/core313.pyd +0 -0
- hikyuu/cpp/core313.pyi +152 -21
- hikyuu/cpp/core39.pyd +0 -0
- hikyuu/cpp/core39.pyi +153 -21
- hikyuu/cpp/hikyuu.dll +0 -0
- hikyuu/cpp/hikyuu.lib +0 -0
- hikyuu/cpp/sqlite3.dll +0 -0
- hikyuu/data/tdx_to_mysql.py +15 -15
- hikyuu/draw/drawplot/__init__.py +2 -0
- hikyuu/draw/drawplot/__init__.pyi +9 -8
- hikyuu/draw/drawplot/bokeh_draw.pyi +514 -507
- hikyuu/draw/drawplot/common.pyi +1 -1
- hikyuu/draw/drawplot/echarts_draw.pyi +516 -509
- hikyuu/draw/drawplot/matplotlib_draw.py +80 -0
- hikyuu/draw/drawplot/matplotlib_draw.pyi +535 -518
- hikyuu/draw/elder.pyi +11 -11
- hikyuu/draw/kaufman.pyi +18 -18
- hikyuu/draw/volume.pyi +10 -10
- hikyuu/examples/notebook/002-HowToGetStock.ipynb +1 -1
- hikyuu/examples/notebook/004-IndicatorOverview.ipynb +117 -52
- hikyuu/extend.pyi +507 -501
- hikyuu/gui/HikyuuTDX.py +19 -3
- hikyuu/gui/data/MainWindow.py +87 -24
- hikyuu/gui/data/UseTdxImportToH5Thread.py +2 -2
- hikyuu/gui/dataserver.py +25 -0
- hikyuu/gui/images/star.png +0 -0
- hikyuu/hub.py +7 -13
- hikyuu/hub.pyi +9 -6
- hikyuu/include/hikyuu/StockManager.h +23 -0
- hikyuu/include/hikyuu/global/agent/spot_generated.h +3 -3
- hikyuu/include/hikyuu/plugin/__init__.py +1 -0
- hikyuu/include/hikyuu/plugin/backtest.h +37 -0
- hikyuu/include/hikyuu/plugin/dataserver.h +18 -0
- hikyuu/include/hikyuu/plugin/device.h +29 -0
- hikyuu/include/hikyuu/plugin/interface/BackTestPluginInterface.h +26 -0
- hikyuu/include/hikyuu/plugin/interface/DataServerPluginInterface.h +23 -0
- hikyuu/include/hikyuu/plugin/interface/DevicePluginInterface.h +25 -0
- hikyuu/include/hikyuu/plugin/interface/__init__.py +1 -0
- hikyuu/include/hikyuu/plugin/interface/plugins.h +20 -0
- hikyuu/include/hikyuu/python/pybind_utils.h +8 -0
- hikyuu/include/hikyuu/strategy/BrokerTradeManager.h +2 -1
- hikyuu/include/hikyuu/strategy/RunPortfolioInStrategy.h +1 -0
- hikyuu/include/hikyuu/strategy/Strategy.h +96 -16
- hikyuu/include/hikyuu/trade_manage/TradeManagerBase.h +4 -2
- hikyuu/include/hikyuu/trade_sys/system/imp/WalkForwardTradeManager.h +3 -2
- hikyuu/include/hikyuu/utilities/config.h +1 -1
- hikyuu/include/hikyuu/utilities/datetime/Datetime.h +3 -3
- hikyuu/include/hikyuu/utilities/datetime/TimeDelta.h +8 -0
- hikyuu/include/hikyuu/utilities/plugin/PluginBase.h +47 -0
- hikyuu/include/hikyuu/utilities/plugin/PluginClient.h +55 -0
- hikyuu/include/hikyuu/utilities/plugin/PluginLoader.h +117 -0
- hikyuu/include/hikyuu/utilities/plugin/PluginManager.h +72 -0
- hikyuu/include/hikyuu/utilities/plugin/__init__.py +1 -0
- hikyuu/include/hikyuu/utilities/thread/MQStealThreadPool.h +1 -1
- hikyuu/include/hikyuu/utilities/thread/MQThreadPool.h +1 -1
- hikyuu/include/hikyuu/utilities/thread/StealThreadPool.h +1 -1
- hikyuu/include/hikyuu/utilities/thread/ThreadPool.h +1 -1
- hikyuu/include/hikyuu/version.h +5 -5
- hikyuu/indicator/indicator.py +1 -1
- hikyuu/plugin/__init__.py +1 -0
- hikyuu/plugin/backtest.dll +0 -0
- hikyuu/plugin/dataserver.dll +0 -0
- hikyuu/plugin/device.dll +0 -0
- hikyuu/strategy/strategy_demo1.py +7 -8
- hikyuu/strategy/strategy_demo2.py +1 -1
- hikyuu/trade_manage/__init__.pyi +513 -506
- hikyuu/trade_manage/broker.pyi +3 -3
- hikyuu/trade_manage/broker_easytrader.pyi +1 -1
- hikyuu/trade_manage/trade.pyi +513 -506
- hikyuu/util/__init__.pyi +2 -2
- hikyuu/util/singleton.pyi +1 -1
- {hikyuu-2.5.5.dist-info → hikyuu-2.6.0.dist-info}/METADATA +6 -2
- {hikyuu-2.5.5.dist-info → hikyuu-2.6.0.dist-info}/RECORD +90 -73
- {hikyuu-2.5.5.dist-info → hikyuu-2.6.0.dist-info}/entry_points.txt +1 -0
- {hikyuu-2.5.5.dist-info → hikyuu-2.6.0.dist-info}/top_level.txt +5 -0
- hikyuu/cpp/core38.pyd +0 -0
- hikyuu/cpp/core38.pyi +0 -13172
- hikyuu/examples/notebook/011-PyechartsDrawplot.ipynb +0 -21821
- /hikyuu/gui/{hikyuu_small.png → images/hikyuu_small.png} +0 -0
- {hikyuu-2.5.5.dist-info → hikyuu-2.6.0.dist-info}/LICENSE +0 -0
- {hikyuu-2.5.5.dist-info → hikyuu-2.6.0.dist-info}/WHEEL +0 -0
hikyuu/__init__.py
CHANGED
|
@@ -52,6 +52,7 @@ import traceback
|
|
|
52
52
|
import sys
|
|
53
53
|
import pickle
|
|
54
54
|
import os
|
|
55
|
+
from pathlib import Path
|
|
55
56
|
|
|
56
57
|
try:
|
|
57
58
|
from .util import *
|
|
@@ -102,6 +103,14 @@ __version__ = get_version()
|
|
|
102
103
|
|
|
103
104
|
sm = StockManager.instance()
|
|
104
105
|
|
|
106
|
+
plugin_path = Path.home() / '.hikyuu' / 'plugin'
|
|
107
|
+
if plugin_path.exists():
|
|
108
|
+
plugin_path = str(plugin_path)
|
|
109
|
+
else:
|
|
110
|
+
plugin_path = os.path.join(os.path.dirname(__file__), 'plugin')
|
|
111
|
+
sm.set_plugin_path(plugin_path)
|
|
112
|
+
print(f"current plugin path: {plugin_path}")
|
|
113
|
+
|
|
105
114
|
|
|
106
115
|
class iodog:
|
|
107
116
|
# Only for compatibility with old code
|
|
@@ -252,6 +261,12 @@ def load_hikyuu(**kwargs):
|
|
|
252
261
|
hku_param["datadir"] = ini.get('hikyuu', 'datadir')
|
|
253
262
|
if ini.has_option('hikyuu', 'quotation_server'):
|
|
254
263
|
hku_param["quotation_server"] = ini['hikyuu']['quotation_server']
|
|
264
|
+
hku_param["load_history_finance"] = ini.getboolean("hikyuu", "load_history_finance", fallback=True)
|
|
265
|
+
hku_param["load_stock_weight"] = ini.getboolean("hikyuu", "load_stock_weight", fallback=True)
|
|
266
|
+
if ini.has_option('hikyuu', 'plugindir'):
|
|
267
|
+
hku_param["plugindir"] = ini.get('hikyuu', 'plugindir')
|
|
268
|
+
else:
|
|
269
|
+
hku_param["plugindir"] = os.path.join(os.path.dirname(__file__), "plugin")
|
|
255
270
|
|
|
256
271
|
base_param = Parameter()
|
|
257
272
|
base_info_config = ini.options('baseinfo')
|