hikyuu 2.6.5__py3-none-win_amd64.whl → 2.6.7__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 +16 -0
- hikyuu/__init__.pyi +484 -474
- hikyuu/analysis/__init__.pyi +466 -445
- hikyuu/analysis/analysis.pyi +467 -446
- hikyuu/core.pyi +468 -447
- hikyuu/cpp/boost_date_time-mt.dll +0 -0
- hikyuu/cpp/boost_serialization-mt.dll +0 -0
- hikyuu/cpp/boost_wserialization-mt.dll +0 -0
- hikyuu/cpp/core310.pyd +0 -0
- hikyuu/cpp/core310.pyi +1070 -878
- hikyuu/cpp/core311.pyd +0 -0
- hikyuu/cpp/core311.pyi +1070 -878
- hikyuu/cpp/core312.pyd +0 -0
- hikyuu/cpp/core312.pyi +1070 -878
- hikyuu/cpp/core313.pyd +0 -0
- hikyuu/cpp/core313.pyi +1070 -876
- hikyuu/cpp/core39.pyd +0 -0
- hikyuu/cpp/core39.pyi +1070 -878
- hikyuu/cpp/hikyuu.dll +0 -0
- hikyuu/cpp/hikyuu.lib +0 -0
- hikyuu/cpp/i18n/__init__.py +0 -0
- hikyuu/cpp/i18n/zh_CN/__init__.py +0 -0
- hikyuu/cpp/i18n/zh_CN/hikyuu.mo +0 -0
- hikyuu/cpp/sqlite3.dll +0 -0
- hikyuu/data/clickhouse_upgrade/__init__.py +1 -0
- hikyuu/data/clickhouse_upgrade/createdb.sql +1085 -0
- hikyuu/data/common_clickhouse.py +465 -0
- hikyuu/data/em_block_to_clickhouse.py +120 -0
- hikyuu/data/hku_config_template.py +58 -3
- hikyuu/data/pytdx_finance_to_clickhouse.py +107 -0
- hikyuu/data/pytdx_to_clickhouse.py +841 -0
- hikyuu/data/pytdx_to_mysql.py +4 -4
- hikyuu/data/pytdx_weight_to_clickhouse.py +191 -0
- hikyuu/data/tdx_to_clickhouse.py +448 -0
- hikyuu/data/tdx_to_h5.py +1 -1
- hikyuu/data/zh_bond10_to_clickhouse.py +49 -0
- hikyuu/draw/__init__.pyi +1 -1
- hikyuu/draw/drawplot/bokeh_draw.pyi +479 -471
- hikyuu/draw/drawplot/echarts_draw.py +9 -8
- hikyuu/draw/drawplot/echarts_draw.pyi +479 -471
- hikyuu/draw/drawplot/matplotlib_draw.py +3 -3
- hikyuu/draw/drawplot/matplotlib_draw.pyi +479 -471
- hikyuu/draw/elder.pyi +6 -6
- hikyuu/draw/kaufman.py +1 -1
- hikyuu/draw/kaufman.pyi +10 -10
- hikyuu/draw/volume.pyi +5 -5
- hikyuu/examples/notebook/000-Index.ipynb +1 -1
- hikyuu/examples/notebook/001-overview.ipynb +78 -63
- hikyuu/examples/notebook/002-HowToGetStock.ipynb +259 -40
- hikyuu/examples/notebook/003-HowToGetKDataAndDraw.ipynb +49 -41
- hikyuu/examples/notebook/004-IndicatorOverview.ipynb +29 -29
- hikyuu/examples/notebook/005-Drawplot.ipynb +66 -37
- hikyuu/examples/notebook/006-TradeManager.ipynb +808 -61
- hikyuu/examples/notebook/007-SystemDetails.ipynb +23 -23
- hikyuu/examples/notebook/009-RealData.ipynb +3 -3
- hikyuu/examples/notebook/010-Portfolio.ipynb +761 -122
- hikyuu/extend.py +15 -100
- hikyuu/extend.pyi +478 -493
- hikyuu/fetcher/stock/zh_stock_a_pytdx.py +9 -20
- hikyuu/fetcher/stock/zh_stock_a_qmt.py +4 -5
- hikyuu/fetcher/stock/zh_stock_a_sina_qq.py +16 -60
- hikyuu/flat/Spot.py +96 -200
- hikyuu/gui/HikyuuTDX.py +134 -7
- hikyuu/gui/data/ImportBlockInfoTask.py +11 -0
- hikyuu/gui/data/ImportHistoryFinanceTask.py +15 -1
- hikyuu/gui/data/ImportPytdxTimeToH5Task.py +11 -1
- hikyuu/gui/data/ImportPytdxToH5Task.py +13 -1
- hikyuu/gui/data/ImportPytdxTransToH5Task.py +11 -1
- hikyuu/gui/data/ImportTdxToH5Task.py +13 -1
- hikyuu/gui/data/ImportWeightToSqliteTask.py +14 -1
- hikyuu/gui/data/ImportZhBond10Task.py +11 -0
- hikyuu/gui/data/MainWindow.py +210 -135
- hikyuu/gui/data/UsePytdxImportToH5Thread.py +45 -26
- hikyuu/gui/data/UseTdxImportToH5Thread.py +19 -1
- hikyuu/gui/dataserver.py +12 -4
- hikyuu/gui/spot_server.py +30 -40
- hikyuu/gui/start_qmt.py +20 -3
- hikyuu/hub.pyi +6 -6
- hikyuu/include/hikyuu/DataType.h +2 -0
- hikyuu/include/hikyuu/KQuery.h +22 -28
- hikyuu/include/hikyuu/MarketInfo.h +1 -1
- hikyuu/include/hikyuu/Stock.h +15 -3
- hikyuu/include/hikyuu/StockManager.h +12 -3
- hikyuu/include/hikyuu/StockTypeInfo.h +6 -0
- hikyuu/include/hikyuu/TransRecord.h +2 -8
- hikyuu/include/hikyuu/data_driver/kdata/mysql/KRecordTable.h +1 -0
- hikyuu/include/hikyuu/doc.h +4 -0
- hikyuu/include/hikyuu/global/GlobalSpotAgent.h +1 -1
- hikyuu/include/hikyuu/global/SpotRecord.h +15 -31
- hikyuu/include/hikyuu/global/agent/spot_generated.h +48 -232
- hikyuu/include/hikyuu/global/schedule/scheduler.h +1 -1
- hikyuu/include/hikyuu/indicator/Indicator.h +37 -0
- hikyuu/include/hikyuu/lang.h +27 -0
- hikyuu/include/hikyuu/plugin/KDataToHdf5Importer.h +9 -1
- hikyuu/include/hikyuu/plugin/dataserver.h +26 -1
- hikyuu/include/hikyuu/plugin/device.h +2 -1
- hikyuu/include/hikyuu/plugin/hkuextra.h +56 -0
- hikyuu/include/hikyuu/plugin/interface/DataDriverPluginInterface.h +27 -0
- hikyuu/include/hikyuu/plugin/interface/DataServerPluginInterface.h +2 -1
- hikyuu/include/hikyuu/plugin/interface/DevicePluginInterface.h +1 -1
- hikyuu/include/hikyuu/plugin/interface/HkuExtraPluginInterface.h +38 -0
- hikyuu/include/hikyuu/plugin/interface/ImportKDataToHdf5PluginInterface.h +13 -1
- hikyuu/include/hikyuu/plugin/interface/plugins.h +4 -0
- hikyuu/include/hikyuu/python/pybind_utils.h +9 -0
- hikyuu/include/hikyuu/strategy/Strategy.h +0 -9
- hikyuu/include/hikyuu/trade_manage/TradeRecord.h +1 -1
- hikyuu/include/hikyuu/utilities/config.h +0 -2
- hikyuu/include/hikyuu/utilities/os.h +9 -0
- hikyuu/include/hikyuu/utilities/plugin/PluginLoader.h +2 -1
- hikyuu/include/hikyuu/version.h +4 -4
- hikyuu/include/hikyuu/view/MarketView.h +59 -0
- hikyuu/indicator/__init__.py +0 -1
- hikyuu/indicator/indicator.py +14 -53
- hikyuu/plugin/backtest.dll +0 -0
- hikyuu/plugin/clickhousedriver.dll +0 -0
- hikyuu/plugin/dataserver.dll +0 -0
- hikyuu/plugin/device.dll +0 -0
- hikyuu/plugin/extind.dll +0 -0
- hikyuu/plugin/hkuextra.dll +0 -0
- hikyuu/plugin/import2hdf5.dll +0 -0
- hikyuu/plugin/tmreport.dll +0 -0
- hikyuu/test/test_init.py +59 -0
- hikyuu/test/test_real_tdx_import.py +336 -0
- hikyuu/test/test_tdx_import.py +315 -0
- hikyuu/test/test_tdx_real_data_import.py +281 -0
- hikyuu/trade_manage/__init__.pyi +479 -471
- hikyuu/trade_manage/trade.py +4 -65
- hikyuu/trade_manage/trade.pyi +479 -483
- hikyuu/trade_sys/__init__.py +11 -0
- hikyuu/util/__init__.py +1 -0
- hikyuu/util/__init__.pyi +4 -4
- hikyuu/util/check.py +8 -0
- hikyuu/util/check.pyi +5 -1
- hikyuu/util/singleton.pyi +1 -1
- {hikyuu-2.6.5.dist-info → hikyuu-2.6.7.dist-info}/METADATA +7 -5
- {hikyuu-2.6.5.dist-info → hikyuu-2.6.7.dist-info}/RECORD +142 -124
- {hikyuu-2.6.5.dist-info → hikyuu-2.6.7.dist-info}/top_level.txt +4 -3
- hikyuu/include/hikyuu/global/agent/hikyuu/flat/__init__.py +0 -1
- hikyuu/include/hikyuu/utilities/mo/__init__.py +0 -1
- hikyuu/include/hikyuu/utilities/mo/mo.h +0 -48
- hikyuu/indicator/talib_wrap.py +0 -1273
- /hikyuu/include/hikyuu/utilities/{mo/moFileReader.h → moFileReader.h} +0 -0
- /hikyuu/include/hikyuu/{global/agent/hikyuu → view}/__init__.py +0 -0
- {hikyuu-2.6.5.dist-info → hikyuu-2.6.7.dist-info}/LICENSE +0 -0
- {hikyuu-2.6.5.dist-info → hikyuu-2.6.7.dist-info}/WHEEL +0 -0
- {hikyuu-2.6.5.dist-info → hikyuu-2.6.7.dist-info}/entry_points.txt +0 -0
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"name": "stdout",
|
|
10
10
|
"output_type": "stream",
|
|
11
11
|
"text": [
|
|
12
|
-
"Initialize hikyuu_2.6.
|
|
13
|
-
"2025-
|
|
12
|
+
"Initialize hikyuu_2.6.6_202508081714_RELEASE_macosx_arm64 ...\n",
|
|
13
|
+
"2025-08-09 00:43:34.746 [HKU-I] - current python version: 3.12.7 (main.cpp:68)\n"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "stderr",
|
|
18
18
|
"output_type": "stream",
|
|
19
19
|
"text": [
|
|
20
|
-
"2025-
|
|
21
|
-
"2025-
|
|
20
|
+
"2025-08-09 00:43:35,275 [INFO] runing in interactive session [<module>] (/Users/fasiondog/workspace/hikyuu/hikyuu/__init__.py:109) [hikyuu::hku_info]\n",
|
|
21
|
+
"2025-08-09 00:43:35,275 [INFO] running in jupyter [<module>] (/Users/fasiondog/workspace/hikyuu/hikyuu/__init__.py:116) [hikyuu::hku_info]\n"
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
24
|
{
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"output_type": "stream",
|
|
27
27
|
"text": [
|
|
28
28
|
"current plugin path: /Users/fasiondog/.hikyuu/plugin\n",
|
|
29
|
-
"2025-
|
|
30
|
-
"2025-
|
|
31
|
-
"2025-
|
|
32
|
-
"2025-
|
|
33
|
-
"2025-
|
|
34
|
-
"2025-
|
|
35
|
-
"2025-
|
|
36
|
-
"2025-
|
|
37
|
-
"2025-
|
|
38
|
-
"2025-
|
|
39
|
-
"CPU times: user
|
|
40
|
-
"Wall time:
|
|
29
|
+
"2025-08-09 00:43:36.526 [HKU-I] - Using SQLITE3 BaseInfoDriver (BaseInfoDriver.cpp:57)\n",
|
|
30
|
+
"2025-08-09 00:43:36.534 [HKU-I] - 加载市场信息…… (StockManager.cpp:576)\n",
|
|
31
|
+
"2025-08-09 00:43:36.535 [HKU-I] - 加载证券类型信息…… (StockManager.cpp:594)\n",
|
|
32
|
+
"2025-08-09 00:43:36.535 [HKU-I] - 加载证券信息…… (StockManager.cpp:480)\n",
|
|
33
|
+
"2025-08-09 00:43:36.594 [HKU-I] - 加载权息数据…… (StockManager.cpp:612)\n",
|
|
34
|
+
"2025-08-09 00:43:36.703 [HKU-I] - 加载板块信息…… (StockManager.cpp:185)\n",
|
|
35
|
+
"2025-08-09 00:43:36.898 [HKU-I] - 加载K线数据…… (StockManager.cpp:189)\n",
|
|
36
|
+
"2025-08-09 00:43:36.899 [HKU-I] - 预加载 day K线数据至缓存 (最大数量: 100000)! (StockManager.cpp:233)\n",
|
|
37
|
+
"2025-08-09 00:43:36.899 [HKU-I] - 0.37 秒数据加载完毕. (StockManager.cpp:195)\n",
|
|
38
|
+
"2025-08-09 00:43:36.899 [HKU-I] - 启动行情接收. (SpotAgent.cpp:38)\n",
|
|
39
|
+
"CPU times: user 527 ms, sys: 127 ms, total: 655 ms\n",
|
|
40
|
+
"Wall time: 2.26 s\n"
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
43
|
],
|
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
"单笔交易最大占用现金比例%: 100.00\n",
|
|
157
157
|
"交易平均占用现金比例%: 99.81\n",
|
|
158
158
|
"已平仓帐户收益率%: 547.99\n",
|
|
159
|
-
"帐户年复合收益率%: 7.
|
|
160
|
-
"帐户平均年收益率%: 22.
|
|
159
|
+
"帐户年复合收益率%: 7.89\n",
|
|
160
|
+
"帐户平均年收益率%: 22.28\n",
|
|
161
161
|
"赢利交易赢利总额: 2063115.70\n",
|
|
162
162
|
"亏损交易亏损总额: -967142.00\n",
|
|
163
163
|
"已平仓交易总数: 74.00\n",
|
|
@@ -177,16 +177,16 @@
|
|
|
177
177
|
"赢利交易最大持仓时间: 118.00\n",
|
|
178
178
|
"亏损交易平均持仓时间: 15.95\n",
|
|
179
179
|
"亏损交易最大持仓时间: 79.00\n",
|
|
180
|
-
"空仓总时间:
|
|
180
|
+
"空仓总时间: 6911.00\n",
|
|
181
181
|
"空仓时间/总时间%: 76.00\n",
|
|
182
|
-
"平均空仓时间:
|
|
183
|
-
"最长空仓时间:
|
|
182
|
+
"平均空仓时间: 93.00\n",
|
|
183
|
+
"最长空仓时间: 3074.00\n",
|
|
184
184
|
"最大连续赢利笔数: 2.00\n",
|
|
185
185
|
"最大连续亏损笔数: 1.00\n",
|
|
186
186
|
"最大连续赢利金额: 704091.20\n",
|
|
187
187
|
"最大连续亏损金额: -175979.00\n",
|
|
188
188
|
"R乘数期望值: 0.04\n",
|
|
189
|
-
"交易机会频率/年: 3.
|
|
189
|
+
"交易机会频率/年: 3.01\n",
|
|
190
190
|
"年度期望R乘数: 0.12\n",
|
|
191
191
|
"赢利交易平均R乘数: 0.15\n",
|
|
192
192
|
"亏损交易平均R乘数: -0.05\n",
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
],
|
|
373
373
|
"metadata": {
|
|
374
374
|
"kernelspec": {
|
|
375
|
-
"display_name": "
|
|
375
|
+
"display_name": "Python 3 (ipykernel)",
|
|
376
376
|
"language": "python",
|
|
377
377
|
"name": "python3"
|
|
378
378
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
],
|
|
89
89
|
"metadata": {
|
|
90
90
|
"kernelspec": {
|
|
91
|
-
"display_name": "Python 3",
|
|
91
|
+
"display_name": "Python 3 (ipykernel)",
|
|
92
92
|
"language": "python",
|
|
93
93
|
"name": "python3"
|
|
94
94
|
},
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
"name": "python",
|
|
103
103
|
"nbconvert_exporter": "python",
|
|
104
104
|
"pygments_lexer": "ipython3",
|
|
105
|
-
"version": "3.
|
|
105
|
+
"version": "3.12.7"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"nbformat": 4,
|
|
109
|
-
"nbformat_minor":
|
|
109
|
+
"nbformat_minor": 4
|
|
110
110
|
}
|