hikyuu 2.6.9__py3-none-win_amd64.whl → 2.7.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.
Files changed (80) hide show
  1. hikyuu/__init__.py +26 -5
  2. hikyuu/__init__.pyi +609 -614
  3. hikyuu/analysis/__init__.pyi +584 -589
  4. hikyuu/analysis/analysis.pyi +585 -590
  5. hikyuu/core.pyi +586 -591
  6. hikyuu/cpp/__init__.pyi +2 -2
  7. hikyuu/cpp/core310.pyd +0 -0
  8. hikyuu/cpp/core310.pyi +60 -100
  9. hikyuu/cpp/core311.pyd +0 -0
  10. hikyuu/cpp/core311.pyi +60 -100
  11. hikyuu/cpp/core312.pyd +0 -0
  12. hikyuu/cpp/core312.pyi +60 -100
  13. hikyuu/cpp/core313.pyd +0 -0
  14. hikyuu/cpp/core313.pyi +60 -100
  15. hikyuu/cpp/hikyuu.dll +0 -0
  16. hikyuu/cpp/hikyuu.lib +0 -0
  17. hikyuu/cpp/sqlite3.dll +0 -0
  18. hikyuu/data/download_block.py +61 -28
  19. hikyuu/draw/drawplot/__init__.pyi +8 -8
  20. hikyuu/draw/drawplot/bokeh_draw.pyi +600 -605
  21. hikyuu/draw/drawplot/common.pyi +1 -1
  22. hikyuu/draw/drawplot/echarts_draw.pyi +602 -607
  23. hikyuu/draw/drawplot/matplotlib_draw.pyi +612 -617
  24. hikyuu/draw/elder.pyi +11 -11
  25. hikyuu/draw/kaufman.pyi +18 -18
  26. hikyuu/draw/volume.pyi +10 -10
  27. hikyuu/extend.py +0 -7
  28. hikyuu/extend.pyi +594 -599
  29. hikyuu/fetcher/stock/zh_block_em.py +0 -60
  30. hikyuu/gui/HikyuuTDX.py +18 -1
  31. hikyuu/gui/data/MainWindow.py +36 -10
  32. hikyuu/gui/images/liandongxiaopu.png +0 -0
  33. hikyuu/hub.pyi +6 -6
  34. hikyuu/include/hikyuu/Stock.h +2 -2
  35. hikyuu/include/hikyuu/config.h +0 -3
  36. hikyuu/include/hikyuu/plugin/device.h +10 -0
  37. hikyuu/include/hikyuu/plugin/interface/DevicePluginInterface.h +2 -0
  38. hikyuu/include/hikyuu/plugin/interface/plugins.h +0 -5
  39. hikyuu/include/hikyuu/python/pybind_utils.h +0 -12
  40. hikyuu/include/hikyuu/trade_sys/slippage/build_in.h +5 -1
  41. hikyuu/include/hikyuu/trade_sys/slippage/crt/SP_LogNormal.h +22 -0
  42. hikyuu/include/hikyuu/trade_sys/slippage/crt/SP_Normal.h +22 -0
  43. hikyuu/include/hikyuu/trade_sys/slippage/crt/SP_TruncNormal.h +25 -0
  44. hikyuu/include/hikyuu/trade_sys/slippage/crt/SP_Uniform.h +23 -0
  45. hikyuu/include/hikyuu/trade_sys/slippage/imp/LogNormalSlippage.h +28 -0
  46. hikyuu/include/hikyuu/trade_sys/slippage/imp/NormalSlippage.h +28 -0
  47. hikyuu/include/hikyuu/trade_sys/slippage/imp/TruncNormalSlippage.h +28 -0
  48. hikyuu/include/hikyuu/trade_sys/slippage/imp/UniformSlippage.h +24 -0
  49. hikyuu/include/hikyuu/version.h +5 -5
  50. hikyuu/plugin/backtest.dll +0 -0
  51. hikyuu/plugin/clickhousedriver.dll +0 -0
  52. hikyuu/plugin/dataserver.dll +0 -0
  53. hikyuu/plugin/dataserver_parquet.dll +0 -0
  54. hikyuu/plugin/device.dll +0 -0
  55. hikyuu/plugin/extind.dll +0 -0
  56. hikyuu/plugin/hkuextra.dll +0 -0
  57. hikyuu/plugin/import2hdf5.dll +0 -0
  58. hikyuu/plugin/tmreport.dll +0 -0
  59. hikyuu/trade_manage/__init__.pyi +600 -605
  60. hikyuu/trade_manage/broker.pyi +3 -3
  61. hikyuu/trade_manage/broker_easytrader.pyi +1 -1
  62. hikyuu/trade_manage/trade.py +0 -2
  63. hikyuu/trade_manage/trade.pyi +600 -605
  64. hikyuu/util/singleton.pyi +1 -1
  65. {hikyuu-2.6.9.dist-info → hikyuu-2.7.0.dist-info}/METADATA +24 -20
  66. {hikyuu-2.6.9.dist-info → hikyuu-2.7.0.dist-info}/RECORD +69 -70
  67. {hikyuu-2.6.9.dist-info → hikyuu-2.7.0.dist-info}/top_level.txt +0 -1
  68. hikyuu/cpp/arrow.dll +0 -0
  69. hikyuu/cpp/core39.pyd +0 -0
  70. hikyuu/cpp/core39.pyi +0 -14818
  71. hikyuu/cpp/msvcp140-a118642f3ae8774fb9dc223e15c4a52e.dll +0 -0
  72. hikyuu/cpp/parquet.dll +0 -0
  73. hikyuu/include/hikyuu/plugin/hkuviews.h +0 -36
  74. hikyuu/include/hikyuu/plugin/interface/HkuViewsPluginInterface.h +0 -34
  75. hikyuu/include/hikyuu/views/__init__.py +0 -1
  76. hikyuu/include/hikyuu/views/arrow_common.h +0 -38
  77. hikyuu/include/hikyuu/views/arrow_views.h +0 -117
  78. hikyuu/plugin/hkuviews.dll +0 -0
  79. {hikyuu-2.6.9.dist-info → hikyuu-2.7.0.dist-info}/WHEEL +0 -0
  80. {hikyuu-2.6.9.dist-info → hikyuu-2.7.0.dist-info}/entry_points.txt +0 -0
hikyuu/cpp/parquet.dll DELETED
Binary file
@@ -1,36 +0,0 @@
1
- /*
2
- * Copyright (c) 2025 hikyuu.org
3
- *
4
- * Created on: 2025-08-06
5
- * Author: fasiondog
6
- */
7
-
8
- #pragma once
9
-
10
- #include <hikyuu/config.h>
11
-
12
- #if HKU_ENABLE_ARROW
13
- #include <arrow/api.h>
14
-
15
- namespace hku {
16
-
17
- //-------------------------------
18
- // Views 扩展
19
- //-------------------------------
20
-
21
- std::shared_ptr<arrow::Table> getIndicatorsViewParallel(const StockList& stks,
22
- const IndicatorList& inds,
23
- const KQuery& query, const string& market);
24
-
25
- std::shared_ptr<arrow::Table> getIndicatorsViewParallel(const StockList& stks,
26
- const IndicatorList& inds,
27
- const Datetime& date, size_t cal_len,
28
- const KQuery::KType& ktype,
29
- const string& market);
30
-
31
- std::shared_ptr<arrow::Table> getMarketViewParallel(const StockList& stks, const Datetime& date,
32
- const string& market);
33
-
34
- } // namespace hku
35
-
36
- #endif // HKU_ENABLE_ARROW
@@ -1,34 +0,0 @@
1
- /*
2
- * Copyright (c) 2025 hikyuu.org
3
- *
4
- * Created on: 2025-05-19
5
- * Author: fasiondog
6
- */
7
-
8
- #pragma once
9
-
10
- #include <arrow/api.h>
11
- #include "hikyuu/utilities/plugin/PluginBase.h"
12
-
13
- namespace hku {
14
-
15
- class HkuViewsPluginInterface : public PluginBase {
16
- public:
17
- HkuViewsPluginInterface() = default;
18
- virtual ~HkuViewsPluginInterface() = default;
19
-
20
- virtual std::shared_ptr<arrow::Table> getIndicatorsViewParallel(const StockList& stks,
21
- const IndicatorList& inds,
22
- const KQuery& query,
23
- const string& market) = 0;
24
-
25
- virtual std::shared_ptr<arrow::Table> getIndicatorsViewParallel(
26
- const StockList& stks, const IndicatorList& inds, const Datetime& date, size_t cal_len,
27
- const KQuery::KType& ktype, const string& market) = 0;
28
-
29
- virtual std::shared_ptr<arrow::Table> getMarketViewParallel(const StockList& stks,
30
- const Datetime& date,
31
- const string& market) = 0;
32
- };
33
-
34
- } // namespace hku
@@ -1 +0,0 @@
1
-
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) 2025 hikyuu.org
3
- *
4
- * Created on: 2025-08-15
5
- * Author: fasiondog
6
- */
7
-
8
- #pragma once
9
-
10
- #include <arrow/api.h>
11
- #include "hikyuu/config.h"
12
- #include "hikyuu/utilities/osdef.h"
13
- #include "hikyuu/utilities/Log.h"
14
-
15
- namespace hku {
16
-
17
- /**
18
- * @ingroup Views
19
- * @{
20
- */
21
-
22
- #if HKU_USE_LOW_PRECISION
23
- #define HKU_ARROW_PRICE_FIELD arrow::float32()
24
- #define HKU_ARROW_PRICE_BUILDER arrow::FloatBuilder
25
- #else
26
- #define HKU_ARROW_PRICE_FIELD arrow::float64()
27
- #define HKU_ARROW_PRICE_BUILDER arrow::DoubleBuilder
28
- #endif
29
-
30
- /**
31
- * @brief 打印 arrow table
32
- * @param table
33
- * @param max_rows
34
- */
35
- void printArrowTable(const std::shared_ptr<arrow::Table>& table, int max_rows = 10);
36
-
37
- /** @} */
38
- } // namespace hku
@@ -1,117 +0,0 @@
1
- /*
2
- * Copyright (c) 2025 hikyuu.org
3
- *
4
- * Created on: 2025-08-13
5
- * Author: fasiondog
6
- */
7
-
8
- #pragma once
9
-
10
- #include "arrow_common.h"
11
- #include "hikyuu/Stock.h"
12
- #include "hikyuu/indicator/Indicator.h"
13
- #include "hikyuu/trade_manage/PositionRecord.h"
14
- #include "hikyuu/trade_manage/TradeRecord.h"
15
-
16
- namespace hku {
17
-
18
- /**
19
- * @ingroup Views
20
- * @{
21
- */
22
-
23
- //-----------------------------------------------------------
24
- // arrow错误时抛出异常, 其他情况仅可能返回为空表, 而不是空指针
25
- //-----------------------------------------------------------
26
-
27
- /**
28
- * 获取指定股票集合在指定交易日的行情数据,不包含当日停牌无数据的股票
29
- * @param stks 股票列表
30
- * @param date 交易日
31
- * @param market 市场代码(用于获取交易日历)
32
- * @return
33
- */
34
- std::shared_ptr<arrow::Table> HKU_API getMarketView(const StockList& stks, const Datetime& date,
35
- const string& market = "SH");
36
-
37
- /**
38
- * 获取指定股票集合在最后交易日的行情数据,不包含当日停牌无数据的股票。如自动接收行情数据,则为实时行情数据
39
- * @param stks 股票列表
40
- * @param market 市场代码(用于获取交易日历)
41
- * @return
42
- */
43
- std::shared_ptr<arrow::Table> HKU_API getMarketView(const StockList& stks,
44
- const string& market = "SH");
45
-
46
- /**
47
- * 计算指定证券列表的各指标结果,以 arrow table 形式返回
48
- * @param stks 指定证券列表
49
- * @param inds 指定指标列表
50
- * @param query 查询条件
51
- * @param market 指定行情市场(用于日期对齐)
52
- * @return * arrow::Result<std::shared_ptr<arrow::Table>>
53
- */
54
- std::shared_ptr<arrow::Table> HKU_API getIndicatorsView(const StockList& stks,
55
- const IndicatorList& inds,
56
- const KQuery& query,
57
- const string& market = "SH");
58
-
59
- /**
60
- * 获取指定日期的各指定证券的各指标视图
61
- * @param stks 证券列表
62
- * @param inds 指标列表
63
- * @param date 指定日期
64
- * @param cal_len 计算需要的数据长度
65
- * @param ktype k线类型
66
- * @param market 指定行情市场(用于日期对齐)
67
- * @return arrow::Result<std::shared_ptr<arrow::Table>>
68
- */
69
- std::shared_ptr<arrow::Table> HKU_API getIndicatorsView(const StockList& stks,
70
- const IndicatorList& inds,
71
- const Datetime& date, size_t cal_len = 100,
72
- const KQuery::KType& ktype = KQuery::DAY,
73
- const string& market = "SH");
74
-
75
- /**
76
- * Indicator转换为 Arrow Table,包含时间序列,则带有时间列,否则无时间列
77
- * @param ind Indicator
78
- * @return arrow::Result<std::shared_ptr<arrow::Table>>
79
- */
80
- std::shared_ptr<arrow::Table> HKU_API getIndicatorView(const Indicator& ind);
81
-
82
- /**
83
- * Indicator转换为 Arrow Table,仅包含值,不包含时间序列
84
- * @return arrow::Result<std::shared_ptr<arrow::Table>>
85
- */
86
- std::shared_ptr<arrow::Table> HKU_API getIndicatorValueView(const Indicator& ind);
87
-
88
- /**
89
- * KData 转换至 arrow table
90
- * @return arrow::Result<std::shared_ptr<arrow::Table>>
91
- */
92
- std::shared_ptr<arrow::Table> HKU_API getKDataView(const KData& kdata);
93
-
94
- /** KRecordList 转换至 arrow table */
95
- std::shared_ptr<arrow::Table> HKU_API getKRecordListView(const KRecordList& ks);
96
-
97
- /** TimeLineList 转换至 arrow table */
98
- std::shared_ptr<arrow::Table> HKU_API getTimeLineListView(const TimeLineList& ts);
99
-
100
- /** TransRecordList 转换至 arrow table */
101
- std::shared_ptr<arrow::Table> HKU_API getTransRecordListView(const TransRecordList& ts);
102
-
103
- /** StockWeightList 转换至 arrow table */
104
- std::shared_ptr<arrow::Table> HKU_API getStockWeightListView(const StockWeightList& sws);
105
-
106
- /** DatetimeList 转换至 arrow table */
107
- std::shared_ptr<arrow::Table> HKU_API getDatetimeListView(const DatetimeList& dates);
108
-
109
- /** TradeRecordList 转换至 arrow table */
110
- std::shared_ptr<arrow::Table> HKU_API getTradeRecordListView(const TradeRecordList& trades);
111
-
112
- /** PositionList 转换至 arrow table */
113
- std::shared_ptr<arrow::Table> HKU_API
114
- getPositionRecordListView(const PositionRecordList& positions);
115
-
116
- /** @} */
117
- } // namespace hku
Binary file
File without changes