hikyuu 2.7.0__py3-none-manylinux2014_aarch64.whl → 2.7.5__py3-none-manylinux2014_aarch64.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 (295) hide show
  1. hikyuu/__init__.py +28 -8
  2. hikyuu/__init__.pyi +26 -14
  3. hikyuu/analysis/__init__.pyi +7 -1
  4. hikyuu/analysis/analysis.pyi +8 -2
  5. hikyuu/core.pyi +9 -3
  6. hikyuu/cpp/core310.pyi +172 -68
  7. hikyuu/cpp/core310.so +0 -0
  8. hikyuu/cpp/core311.pyi +172 -68
  9. hikyuu/cpp/core311.so +0 -0
  10. hikyuu/cpp/core312.pyi +172 -68
  11. hikyuu/cpp/core312.so +0 -0
  12. hikyuu/cpp/core313.pyi +172 -68
  13. hikyuu/cpp/core313.so +0 -0
  14. hikyuu/cpp/i18n/zh_CN/hikyuu.mo +0 -0
  15. hikyuu/cpp/i18n/zh_CN/hikyuu_plugin.mo +0 -0
  16. hikyuu/cpp/libboost_atomic.so +0 -0
  17. hikyuu/cpp/libboost_atomic.so.1.90.0 +0 -0
  18. hikyuu/cpp/{libboost_charconv-mt.so → libboost_charconv.so} +0 -0
  19. hikyuu/cpp/{libboost_charconv-mt.so.1.88.0 → libboost_charconv.so.1.90.0} +0 -0
  20. hikyuu/cpp/libboost_chrono.so +0 -0
  21. hikyuu/cpp/libboost_chrono.so.1.90.0 +0 -0
  22. hikyuu/cpp/libboost_container.so +0 -0
  23. hikyuu/cpp/libboost_container.so.1.90.0 +0 -0
  24. hikyuu/cpp/libboost_date_time.so +0 -0
  25. hikyuu/cpp/libboost_date_time.so.1.90.0 +0 -0
  26. hikyuu/cpp/libboost_locale.so +0 -0
  27. hikyuu/cpp/libboost_locale.so.1.90.0 +0 -0
  28. hikyuu/cpp/libboost_random.so +0 -0
  29. hikyuu/cpp/libboost_random.so.1.90.0 +0 -0
  30. hikyuu/cpp/libboost_serialization.so +0 -0
  31. hikyuu/cpp/libboost_serialization.so.1.90.0 +0 -0
  32. hikyuu/cpp/libboost_thread.so +0 -0
  33. hikyuu/cpp/libboost_thread.so.1.90.0 +0 -0
  34. hikyuu/cpp/libboost_wserialization.so +0 -0
  35. hikyuu/cpp/libboost_wserialization.so.1.90.0 +0 -0
  36. hikyuu/cpp/libhikyuu.so +0 -0
  37. hikyuu/cpp/libmimalloc.so +0 -0
  38. hikyuu/cpp/libmimalloc.so.3 +0 -0
  39. hikyuu/cpp/libmimalloc.so.3.1 +0 -0
  40. hikyuu/cpp/libsqlite3.so +0 -0
  41. hikyuu/data/clickhouse_upgrade/0001.sql +2 -0
  42. hikyuu/data/clickhouse_upgrade/0002.sql +9 -0
  43. hikyuu/data/common_clickhouse.py +1 -3
  44. hikyuu/data/common_mysql.py +1 -1
  45. hikyuu/data/download_block.py +1 -1
  46. hikyuu/data/em_block_to_mysql.py +16 -4
  47. hikyuu/data/em_block_to_sqlite.py +16 -4
  48. hikyuu/data/hku_config_template.py +31 -4
  49. hikyuu/data/mysql_upgrade/0029.sql +2 -0
  50. hikyuu/data/mysql_upgrade/0030.sql +3 -0
  51. hikyuu/data/pytdx_to_clickhouse.py +86 -32
  52. hikyuu/data/pytdx_to_h5.py +73 -28
  53. hikyuu/data/pytdx_to_mysql.py +65 -21
  54. hikyuu/data/pytdx_weight_to_clickhouse.py +2 -0
  55. hikyuu/data/pytdx_weight_to_mysql.py +2 -0
  56. hikyuu/data/pytdx_weight_to_sqlite.py +2 -0
  57. hikyuu/data/sqlite_upgrade/0029.sql +4 -0
  58. hikyuu/data/sqlite_upgrade/0030.sql +5 -0
  59. hikyuu/data/tdx_to_clickhouse.py +2 -2
  60. hikyuu/data/tdx_to_h5.py +11 -11
  61. hikyuu/data/tdx_to_mysql.py +2 -2
  62. hikyuu/draw/__init__.pyi +1 -1
  63. hikyuu/draw/drawplot/__init__.pyi +1 -1
  64. hikyuu/draw/drawplot/bokeh_draw.pyi +17 -9
  65. hikyuu/draw/drawplot/echarts_draw.pyi +17 -9
  66. hikyuu/draw/drawplot/matplotlib_draw.py +23 -9
  67. hikyuu/draw/drawplot/matplotlib_draw.pyi +17 -9
  68. hikyuu/examples/notebook/001-overview.ipynb +112 -78
  69. hikyuu/examples/notebook/004-IndicatorOverview.ipynb +52 -65
  70. hikyuu/examples/notebook/006-TradeManager.ipynb +402 -291
  71. hikyuu/examples/notebook/008-Pickle.ipynb +25 -17
  72. hikyuu/examples/notebook/009-RealData.ipynb +36 -38
  73. hikyuu/examples/notebook/Demo/Demo2.ipynb +146 -116
  74. hikyuu/extend.pyi +10 -4
  75. hikyuu/gui/HikyuuTDX.py +42 -3
  76. hikyuu/gui/data/MainWindow.py +189 -129
  77. hikyuu/gui/data/UseTdxImportToH5Thread.py +4 -2
  78. hikyuu/gui/start_qmt.py +1 -1
  79. hikyuu/hub.pyi +6 -6
  80. hikyuu/include/hikyuu/Block.h +9 -9
  81. hikyuu/include/hikyuu/HistoryFinanceInfo.h +3 -3
  82. hikyuu/include/hikyuu/KData.h +51 -28
  83. hikyuu/include/hikyuu/KDataImp.h +12 -7
  84. hikyuu/include/hikyuu/KDataPrivatedBufferImp.h +13 -7
  85. hikyuu/include/hikyuu/KDataSharedBufferImp.h +8 -6
  86. hikyuu/include/hikyuu/KQuery.h +11 -11
  87. hikyuu/include/hikyuu/KRecord.h +1 -1
  88. hikyuu/include/hikyuu/MarketInfo.h +10 -10
  89. hikyuu/include/hikyuu/Stock.h +30 -30
  90. hikyuu/include/hikyuu/StockManager.h +28 -12
  91. hikyuu/include/hikyuu/StockTypeInfo.h +9 -9
  92. hikyuu/include/hikyuu/StockWeight.h +9 -9
  93. hikyuu/include/hikyuu/StrategyContext.h +4 -4
  94. hikyuu/include/hikyuu/TimeLineRecord.h +1 -1
  95. hikyuu/include/hikyuu/TransRecord.h +1 -1
  96. hikyuu/include/hikyuu/data_driver/BaseInfoDriver.h +2 -1
  97. hikyuu/include/hikyuu/data_driver/BlockInfoDriver.h +6 -0
  98. hikyuu/include/hikyuu/data_driver/KDataDriver.h +6 -7
  99. hikyuu/include/hikyuu/data_driver/kdata/mysql/MySQLKDataDriver.h +5 -1
  100. hikyuu/include/hikyuu/data_driver/kdata/sqlite/SQLiteKDataDriver.h +1 -1
  101. hikyuu/include/hikyuu/global/sysinfo.h +24 -5
  102. hikyuu/include/hikyuu/indicator/IndParam.h +1 -1
  103. hikyuu/include/hikyuu/indicator/Indicator.h +56 -27
  104. hikyuu/include/hikyuu/indicator/Indicator2InImp.h +0 -4
  105. hikyuu/include/hikyuu/indicator/IndicatorImp.h +147 -74
  106. hikyuu/include/hikyuu/indicator/crt/CONTEXT.h +11 -1
  107. hikyuu/include/hikyuu/indicator/crt/IC.h +19 -14
  108. hikyuu/include/hikyuu/indicator/crt/ICIR.h +4 -7
  109. hikyuu/include/hikyuu/indicator/imp/IAbs.h +1 -0
  110. hikyuu/include/hikyuu/indicator/imp/IAcos.h +1 -0
  111. hikyuu/include/hikyuu/indicator/imp/IAd.h +0 -2
  112. hikyuu/include/hikyuu/indicator/imp/IAdvance.h +3 -0
  113. hikyuu/include/hikyuu/indicator/imp/IAma.h +3 -0
  114. hikyuu/include/hikyuu/indicator/imp/IAsin.h +1 -0
  115. hikyuu/include/hikyuu/indicator/imp/IAtan.h +1 -0
  116. hikyuu/include/hikyuu/indicator/imp/IAtr.h +2 -3
  117. hikyuu/include/hikyuu/indicator/imp/IBackset.h +2 -4
  118. hikyuu/include/hikyuu/indicator/imp/IBlockSetNum.h +3 -0
  119. hikyuu/include/hikyuu/indicator/imp/ICeil.h +1 -0
  120. hikyuu/include/hikyuu/indicator/imp/IContext.h +0 -3
  121. hikyuu/include/hikyuu/indicator/imp/ICorr.h +3 -0
  122. hikyuu/include/hikyuu/indicator/imp/ICos.h +1 -0
  123. hikyuu/include/hikyuu/indicator/imp/ICost.h +0 -2
  124. hikyuu/include/hikyuu/indicator/imp/ICount.h +2 -1
  125. hikyuu/include/hikyuu/indicator/imp/ICval.h +1 -4
  126. hikyuu/include/hikyuu/indicator/imp/ICycle.h +0 -2
  127. hikyuu/include/hikyuu/indicator/imp/IDecline.h +3 -0
  128. hikyuu/include/hikyuu/indicator/imp/IDevsq.h +4 -1
  129. hikyuu/include/hikyuu/indicator/imp/IDiff.h +1 -0
  130. hikyuu/include/hikyuu/indicator/imp/IDma.h +2 -0
  131. hikyuu/include/hikyuu/indicator/imp/IDropna.h +0 -4
  132. hikyuu/include/hikyuu/indicator/imp/IEma.h +3 -1
  133. hikyuu/include/hikyuu/indicator/imp/IEvery.h +5 -1
  134. hikyuu/include/hikyuu/indicator/imp/IExist.h +5 -1
  135. hikyuu/include/hikyuu/indicator/imp/IExp.h +1 -0
  136. hikyuu/include/hikyuu/indicator/imp/IFilter.h +4 -5
  137. hikyuu/include/hikyuu/indicator/imp/IFinance.h +1 -2
  138. hikyuu/include/hikyuu/indicator/imp/IFloor.h +1 -0
  139. hikyuu/include/hikyuu/indicator/imp/IHhvbars.h +5 -1
  140. hikyuu/include/hikyuu/indicator/imp/IHighLine.h +5 -1
  141. hikyuu/include/hikyuu/indicator/imp/IHsl.h +0 -2
  142. hikyuu/include/hikyuu/indicator/imp/IIc.h +3 -6
  143. hikyuu/include/hikyuu/indicator/imp/IInBlock.h +1 -2
  144. hikyuu/include/hikyuu/indicator/imp/IIntpart.h +1 -0
  145. hikyuu/include/hikyuu/indicator/imp/IIsInf.h +1 -0
  146. hikyuu/include/hikyuu/indicator/imp/IIsInfa.h +1 -0
  147. hikyuu/include/hikyuu/indicator/imp/IIsLastBar.h +0 -1
  148. hikyuu/include/hikyuu/indicator/imp/IIsNa.h +1 -0
  149. hikyuu/include/hikyuu/indicator/imp/IJumpDown.h +1 -0
  150. hikyuu/include/hikyuu/indicator/imp/IJumpUp.h +1 -0
  151. hikyuu/include/hikyuu/indicator/imp/IKData.h +1 -2
  152. hikyuu/include/hikyuu/indicator/imp/ILiuTongPan.h +0 -2
  153. hikyuu/include/hikyuu/indicator/imp/ILn.h +1 -0
  154. hikyuu/include/hikyuu/indicator/imp/ILog.h +1 -0
  155. hikyuu/include/hikyuu/indicator/imp/ILowLine.h +5 -1
  156. hikyuu/include/hikyuu/indicator/imp/ILowLineBars.h +5 -1
  157. hikyuu/include/hikyuu/indicator/imp/IMa.h +6 -1
  158. hikyuu/include/hikyuu/indicator/imp/IMacd.h +2 -0
  159. hikyuu/include/hikyuu/indicator/imp/INot.h +1 -0
  160. hikyuu/include/hikyuu/indicator/imp/IPow.h +3 -1
  161. hikyuu/include/hikyuu/indicator/imp/IQuantileTrunc.h +1 -0
  162. hikyuu/include/hikyuu/indicator/imp/IRecover.h +3 -0
  163. hikyuu/include/hikyuu/indicator/imp/IRef.h +3 -1
  164. hikyuu/include/hikyuu/indicator/imp/IResult.h +1 -0
  165. hikyuu/include/hikyuu/indicator/imp/IReverse.h +1 -0
  166. hikyuu/include/hikyuu/indicator/imp/IRoc.h +6 -1
  167. hikyuu/include/hikyuu/indicator/imp/IRocp.h +5 -1
  168. hikyuu/include/hikyuu/indicator/imp/IRocr.h +5 -1
  169. hikyuu/include/hikyuu/indicator/imp/IRocr100.h +5 -1
  170. hikyuu/include/hikyuu/indicator/imp/IRound.h +1 -0
  171. hikyuu/include/hikyuu/indicator/imp/IRoundDown.h +1 -0
  172. hikyuu/include/hikyuu/indicator/imp/IRoundUp.h +1 -0
  173. hikyuu/include/hikyuu/indicator/imp/ISaftyLoss.h +1 -0
  174. hikyuu/include/hikyuu/indicator/imp/ISign.h +1 -0
  175. hikyuu/include/hikyuu/indicator/imp/ISin.h +1 -0
  176. hikyuu/include/hikyuu/indicator/imp/ISlope.h +5 -1
  177. hikyuu/include/hikyuu/indicator/imp/ISma.h +2 -0
  178. hikyuu/include/hikyuu/indicator/imp/ISpearman.h +3 -0
  179. hikyuu/include/hikyuu/indicator/imp/ISqrt.h +1 -0
  180. hikyuu/include/hikyuu/indicator/imp/IStdev.h +5 -1
  181. hikyuu/include/hikyuu/indicator/imp/IStdp.h +5 -1
  182. hikyuu/include/hikyuu/indicator/imp/ISum.h +6 -1
  183. hikyuu/include/hikyuu/indicator/imp/ITan.h +1 -0
  184. hikyuu/include/hikyuu/indicator/imp/ITime.h +1 -2
  185. hikyuu/include/hikyuu/indicator/imp/ITimeLine.h +0 -2
  186. hikyuu/include/hikyuu/indicator/imp/ITr.h +1 -2
  187. hikyuu/include/hikyuu/indicator/imp/IVar.h +5 -1
  188. hikyuu/include/hikyuu/indicator/imp/IVarp.h +5 -1
  189. hikyuu/include/hikyuu/indicator/imp/IVigor.h +0 -2
  190. hikyuu/include/hikyuu/indicator/imp/IWma.h +5 -1
  191. hikyuu/include/hikyuu/indicator/imp/IZongGuBen.h +1 -2
  192. hikyuu/include/hikyuu/indicator_talib/imp/TaAdosc.h +0 -2
  193. hikyuu/include/hikyuu/indicator_talib/imp/TaSar.h +0 -2
  194. hikyuu/include/hikyuu/indicator_talib/imp/TaSarext.h +0 -4
  195. hikyuu/include/hikyuu/indicator_talib/imp/TaStoch.h +0 -3
  196. hikyuu/include/hikyuu/indicator_talib/imp/TaStochf.h +0 -2
  197. hikyuu/include/hikyuu/indicator_talib/imp/TaUltosc.h +0 -2
  198. hikyuu/include/hikyuu/indicator_talib/imp/ta_defines.h +2 -4
  199. hikyuu/include/hikyuu/indicator_talib/imp/ta_imp.h +70 -90
  200. hikyuu/include/hikyuu/plugin/KDataToClickHouseImporter.h +40 -0
  201. hikyuu/include/hikyuu/plugin/KDataToMySQLImporter.h +40 -0
  202. hikyuu/include/hikyuu/plugin/checkdata.h +20 -0
  203. hikyuu/include/hikyuu/plugin/extind.h +3 -0
  204. hikyuu/include/hikyuu/plugin/hkuextra.h +4 -0
  205. hikyuu/include/hikyuu/plugin/interface/CheckDataPluginInterface.h +25 -0
  206. hikyuu/include/hikyuu/plugin/interface/HkuExtraPluginInterface.h +4 -0
  207. hikyuu/include/hikyuu/plugin/interface/ImportKDataToClickHousePluginInterface.h +44 -0
  208. hikyuu/include/hikyuu/plugin/interface/ImportKDataToMySQLPluginInterface.h +42 -0
  209. hikyuu/include/hikyuu/plugin/interface/plugins.h +6 -0
  210. hikyuu/include/hikyuu/python/convert_any.h +9 -6
  211. hikyuu/include/hikyuu/python/pybind_utils.h +22 -5
  212. hikyuu/include/hikyuu/strategy/Strategy.h +1 -1
  213. hikyuu/include/hikyuu/trade_manage/TradeCostBase.h +5 -3
  214. hikyuu/include/hikyuu/trade_manage/TradeManagerBase.h +9 -3
  215. hikyuu/include/hikyuu/trade_manage/TradeRecord.h +2 -1
  216. hikyuu/include/hikyuu/trade_sys/allocatefunds/AllocateFundsBase.h +8 -4
  217. hikyuu/include/hikyuu/trade_sys/allocatefunds/build_in.h +1 -0
  218. hikyuu/include/hikyuu/trade_sys/allocatefunds/crt/AF_FixedAmount.h +26 -0
  219. hikyuu/include/hikyuu/trade_sys/allocatefunds/imp/FixAmountFunds.h +18 -0
  220. hikyuu/include/hikyuu/trade_sys/condition/ConditionBase.h +5 -3
  221. hikyuu/include/hikyuu/trade_sys/environment/EnvironmentBase.h +6 -3
  222. hikyuu/include/hikyuu/trade_sys/moneymanager/MoneyManagerBase.h +5 -3
  223. hikyuu/include/hikyuu/trade_sys/multifactor/MultiFactorBase.h +23 -20
  224. hikyuu/include/hikyuu/trade_sys/multifactor/NormalizeBase.h +6 -4
  225. hikyuu/include/hikyuu/trade_sys/multifactor/ScoresFilterBase.h +5 -3
  226. hikyuu/include/hikyuu/trade_sys/multifactor/crt/MF_EqualWeight.h +3 -3
  227. hikyuu/include/hikyuu/trade_sys/multifactor/crt/MF_ICIRWeight.h +4 -4
  228. hikyuu/include/hikyuu/trade_sys/multifactor/crt/MF_ICWeight.h +4 -4
  229. hikyuu/include/hikyuu/trade_sys/multifactor/crt/MF_Weight.h +4 -4
  230. hikyuu/include/hikyuu/trade_sys/portfolio/Portfolio.h +16 -13
  231. hikyuu/include/hikyuu/trade_sys/profitgoal/ProfitGoalBase.h +13 -13
  232. hikyuu/include/hikyuu/trade_sys/selector/SelectorBase.h +12 -3
  233. hikyuu/include/hikyuu/trade_sys/selector/crt/SE_MultiFactor.h +1 -1
  234. hikyuu/include/hikyuu/trade_sys/selector/crt/SE_MultiFactor2.h +1 -1
  235. hikyuu/include/hikyuu/trade_sys/selector/imp/MultiFactorSelector.h +1 -0
  236. hikyuu/include/hikyuu/trade_sys/selector/imp/MultiFactorSelector2.h +1 -0
  237. hikyuu/include/hikyuu/trade_sys/selector/imp/optimal/OptimalSelectorBase.h +0 -2
  238. hikyuu/include/hikyuu/trade_sys/selector/imp/optimal/PerformanceOptimalSelector.h +0 -4
  239. hikyuu/include/hikyuu/trade_sys/signal/SignalBase.h +5 -3
  240. hikyuu/include/hikyuu/trade_sys/slippage/SlippageBase.h +5 -3
  241. hikyuu/include/hikyuu/trade_sys/stoploss/StoplossBase.h +5 -3
  242. hikyuu/include/hikyuu/trade_sys/system/System.h +6 -4
  243. hikyuu/include/hikyuu/utilities/Log.h +6 -7
  244. hikyuu/include/hikyuu/utilities/LruCache.h +299 -0
  245. hikyuu/include/hikyuu/utilities/Parameter.h +17 -0
  246. hikyuu/include/hikyuu/utilities/arithmetic.h +2 -2
  247. hikyuu/include/hikyuu/utilities/config.h +28 -0
  248. hikyuu/include/hikyuu/utilities/omp_macro.h +25 -0
  249. hikyuu/include/hikyuu/utilities/plugin/PluginBase.h +17 -2
  250. hikyuu/include/hikyuu/utilities/plugin/PluginManager.h +46 -22
  251. hikyuu/include/hikyuu/utilities/thread/GlobalStealThreadPool.h +71 -19
  252. hikyuu/include/hikyuu/utilities/thread/GlobalThreadPool.h +1 -5
  253. hikyuu/include/hikyuu/utilities/thread/MQStealThreadPool.h +286 -0
  254. hikyuu/include/hikyuu/utilities/thread/MQThreadPool.h +1 -0
  255. hikyuu/include/hikyuu/utilities/thread/StealThreadPool.h +297 -0
  256. hikyuu/include/hikyuu/utilities/thread/ThreadPool.h +1 -4
  257. hikyuu/include/hikyuu/utilities/thread/WorkStealQueue.h +9 -8
  258. hikyuu/include/hikyuu/utilities/thread/algorithm.h +350 -14
  259. hikyuu/include/hikyuu/version.h +4 -4
  260. hikyuu/plugin/libbacktest.so +0 -0
  261. hikyuu/plugin/libcheckdata.so +0 -0
  262. hikyuu/plugin/libclickhousedriver.so +0 -0
  263. hikyuu/plugin/libdataserver.so +0 -0
  264. hikyuu/plugin/libdataserver_parquet.so +0 -0
  265. hikyuu/plugin/libdevice.so +0 -0
  266. hikyuu/plugin/libextind.so +0 -0
  267. hikyuu/plugin/libhkuextra.so +0 -0
  268. hikyuu/plugin/libimport2ch.so +0 -0
  269. hikyuu/plugin/libimport2hdf5.so +0 -0
  270. hikyuu/plugin/libimport2mysql.so +0 -0
  271. hikyuu/plugin/libtmreport.so +0 -0
  272. hikyuu/test/Indicator.py +1 -2
  273. hikyuu/trade_manage/__init__.pyi +14 -8
  274. hikyuu/trade_manage/trade.pyi +14 -8
  275. hikyuu/trade_sys/trade_sys.py +54 -5
  276. hikyuu/util/__init__.pyi +2 -2
  277. hikyuu/util/singleton.pyi +1 -1
  278. {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/METADATA +10 -4
  279. {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/RECORD +282 -252
  280. hikyuu/cpp/libboost_chrono-mt.so +0 -0
  281. hikyuu/cpp/libboost_chrono-mt.so.1.88.0 +0 -0
  282. hikyuu/cpp/libboost_date_time-mt.so +0 -0
  283. hikyuu/cpp/libboost_date_time-mt.so.1.88.0 +0 -0
  284. hikyuu/cpp/libboost_serialization-mt.so +0 -0
  285. hikyuu/cpp/libboost_serialization-mt.so.1.88.0 +0 -0
  286. hikyuu/cpp/libboost_system-mt.so +0 -0
  287. hikyuu/cpp/libboost_system-mt.so.1.88.0 +0 -0
  288. hikyuu/cpp/libboost_thread-mt.so +0 -0
  289. hikyuu/cpp/libboost_thread-mt.so.1.88.0 +0 -0
  290. hikyuu/cpp/libboost_wserialization-mt.so +0 -0
  291. hikyuu/cpp/libboost_wserialization-mt.so.1.88.0 +0 -0
  292. hikyuu/data/pytdx_to_taos.py +0 -736
  293. {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/WHEEL +0 -0
  294. {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/entry_points.txt +0 -0
  295. {hikyuu-2.7.0.dist-info → hikyuu-2.7.5.dist-info}/top_level.txt +0 -0
hikyuu/cpp/core313.pyi CHANGED
@@ -3,7 +3,7 @@ import collections.abc
3
3
  import numpy
4
4
  import numpy.typing
5
5
  import typing
6
- __all__: list[str] = ['ABS', 'ACOS', 'AD', 'ADVANCE', 'AF_EqualWeight', 'AF_FixedWeight', 'AF_FixedWeightList', 'AF_MultiFactor', 'AGG_COUNT', 'AGG_FUNC', 'AGG_MAD', 'AGG_MAX', 'AGG_MEAN', 'AGG_MEDIAN', 'AGG_MIN', 'AGG_PROD', 'AGG_QUANTILE', 'AGG_STD', 'AGG_SUM', 'AGG_VAR', 'ALIGN', 'AMA', 'ASIN', 'ATAN', 'ATR', 'AVEDEV', 'AllocateFundsBase', 'BACKSET', 'BARSCOUNT', 'BARSLAST', 'BARSLASTCOUNT', 'BARSSINCE', 'BARSSINCEN', 'BETWEEN', 'BLOCKSETNUM', 'BUSINESS', 'Block', 'BlockInfoDriver', 'BorrowRecord', 'BrokerPositionRecord', 'CEILING', 'CN_Bool', 'CN_OPLine', 'CONTEXT', 'CONTEXT_K', 'CORR', 'COS', 'COST', 'COUNT', 'CROSS', 'CVAL', 'CYCLE', 'C_AMO', 'C_CLOSE', 'C_HIGH', 'C_KDATA', 'C_LOW', 'C_OPEN', 'C_VOL', 'ConditionBase', 'Constant', 'CostRecord', 'DATE', 'DAY', 'DEBUG', 'DECLINE', 'DEVSQ', 'DIFF', 'DISCARD', 'DMA', 'DOWNNDAY', 'DROPNA', 'DataDriverFactory', 'Datetime', 'DatetimeList', 'Days', 'EMA', 'ERROR', 'EVERY', 'EV_Bool', 'EV_TwoLine', 'EXIST', 'EXP', 'EnvironmentBase', 'FATAL', 'FILTER', 'FINANCE', 'FLOOR', 'FundsRecord', 'GROUP_COUNT', 'GROUP_FUNC', 'GROUP_MAX', 'GROUP_MEAN', 'GROUP_MIN', 'GROUP_PROD', 'GROUP_SUM', 'HHV', 'HHVBARS', 'HKUException', 'HOUR', 'HSL', 'Hours', 'IC', 'ICIR', 'IF', 'INBLOCK', 'INDEXA', 'INDEXADV', 'INDEXC', 'INDEXDEC', 'INDEXH', 'INDEXL', 'INDEXO', 'INDEXV', 'INFO', 'INSUM', 'INTPART', 'IR', 'ISINF', 'ISINFA', 'ISLASTBAR', 'ISNA', 'IndParam', 'Indicator', 'IndicatorImp', 'JUMPDOWN', 'JUMPUP', 'KALMAN', 'KDATA_PART', 'KData', 'KDataDriver', 'KDataToHdf5Importer', 'KRecord', 'KRecordList', 'LAST', 'LASTVALUE', 'LIUTONGPAN', 'LLV', 'LLVBARS', 'LN', 'LOG', 'LOG_LEVEL', 'LONGCROSS', 'LoanRecord', 'MA', 'MACD', 'MAX', 'MDD', 'MF_EqualWeight', 'MF_ICIRWeight', 'MF_ICWeight', 'MF_Weight', 'MIN', 'MINUTE', 'MM_FixedCapital', 'MM_FixedCapitalFunds', 'MM_FixedCount', 'MM_FixedCountTps', 'MM_FixedPercent', 'MM_FixedRisk', 'MM_FixedUnits', 'MM_Nothing', 'MM_WilliamsFixedRisk', 'MOD', 'MONTH', 'MRR', 'MarketInfo', 'Microseconds', 'Milliseconds', 'Minutes', 'MoneyManagerBase', 'MultiFactorBase', 'NDAY', 'NORM_MinMax', 'NORM_NOTHING', 'NORM_Quantile', 'NORM_Quantile_Uniform', 'NORM_Zscore', 'NOT', 'NormalizeBase', 'OFF', 'OrderBrokerBase', 'PF_Simple', 'PF_WithoutAF', 'PG_FixedHoldDays', 'PG_FixedPercent', 'PG_NoGoal', 'POS', 'POW', 'PRICELIST', 'Parameter', 'Performance', 'Portfolio', 'PositionRecord', 'PositionRecordList', 'ProfitGoalBase', 'QUANTILE_TRUNC', 'Query', 'RANK', 'RECOVER_BACKWARD', 'RECOVER_EQUAL_BACKWARD', 'RECOVER_EQUAL_FORWARD', 'RECOVER_FORWARD', 'REF', 'REFX', 'REPLACE', 'RESULT', 'REVERSE', 'ROC', 'ROCP', 'ROCR', 'ROCR100', 'ROUND', 'ROUNDDOWN', 'ROUNDUP', 'RSI', 'SAFTYLOSS', 'SCFilter_AmountLimit', 'SCFilter_Group', 'SCFilter_IgnoreNan', 'SCFilter_LessOrEqualValue', 'SCFilter_Price', 'SCFilter_TopN', 'SE_EvaluateOptimal', 'SE_Fixed', 'SE_MaxFundsOptimal', 'SE_MultiFactor', 'SE_MultiFactor2', 'SE_PerformanceOptimal', 'SE_Signal', 'SGN', 'SG_Add', 'SG_AllwaysBuy', 'SG_And', 'SG_Band', 'SG_Bool', 'SG_Buy', 'SG_Cross', 'SG_CrossGold', 'SG_Cycle', 'SG_Div', 'SG_Flex', 'SG_Mul', 'SG_OneSide', 'SG_Or', 'SG_Sell', 'SG_Single', 'SG_Single2', 'SG_Sub', 'SIN', 'SLICE', 'SLOPE', 'SMA', 'SPEARMAN', 'SP_FixedPercent', 'SP_FixedValue', 'SP_LogNormal', 'SP_Normal', 'SP_TruncNormal', 'SP_Uniform', 'SQRT', 'STDEV', 'STDP', 'ST_FixedPercent', 'ST_Indicator', 'ST_Saftyloss', 'SUM', 'SUMBARS', 'SYS_Simple', 'SYS_WalkForward', 'ScoreRecord', 'ScoreRecordList', 'ScoresFilterBase', 'Seconds', 'SelectorBase', 'SignalBase', 'SlippageBase', 'SpotRecord', 'Stock', 'StockManager', 'StockTypeInfo', 'StockWeight', 'StockWeightList', 'StoplossBase', 'Strategy', 'StrategyContext', 'System', 'SystemPart', 'SystemWeight', 'SystemWeightList', 'TAN', 'TA_ACCBANDS', 'TA_ACOS', 'TA_AD', 'TA_ADD', 'TA_ADOSC', 'TA_ADX', 'TA_ADXR', 'TA_APO', 'TA_AROON', 'TA_AROONOSC', 'TA_ASIN', 'TA_ATAN', 'TA_ATR', 'TA_AVGDEV', 'TA_AVGPRICE', 'TA_BBANDS', 'TA_BETA', 'TA_BOP', 'TA_CCI', 'TA_CDL2CROWS', 'TA_CDL3BLACKCROWS', 'TA_CDL3INSIDE', 'TA_CDL3LINESTRIKE', 'TA_CDL3OUTSIDE', 'TA_CDL3STARSINSOUTH', 'TA_CDL3WHITESOLDIERS', 'TA_CDLABANDONEDBABY', 'TA_CDLADVANCEBLOCK', 'TA_CDLBELTHOLD', 'TA_CDLBREAKAWAY', 'TA_CDLCLOSINGMARUBOZU', 'TA_CDLCONCEALBABYSWALL', 'TA_CDLCOUNTERATTACK', 'TA_CDLDARKCLOUDCOVER', 'TA_CDLDOJI', 'TA_CDLDOJISTAR', 'TA_CDLDRAGONFLYDOJI', 'TA_CDLENGULFING', 'TA_CDLEVENINGDOJISTAR', 'TA_CDLEVENINGSTAR', 'TA_CDLGAPSIDESIDEWHITE', 'TA_CDLGRAVESTONEDOJI', 'TA_CDLHAMMER', 'TA_CDLHANGINGMAN', 'TA_CDLHARAMI', 'TA_CDLHARAMICROSS', 'TA_CDLHIGHWAVE', 'TA_CDLHIKKAKE', 'TA_CDLHIKKAKEMOD', 'TA_CDLHOMINGPIGEON', 'TA_CDLIDENTICAL3CROWS', 'TA_CDLINNECK', 'TA_CDLINVERTEDHAMMER', 'TA_CDLKICKING', 'TA_CDLKICKINGBYLENGTH', 'TA_CDLLADDERBOTTOM', 'TA_CDLLONGLEGGEDDOJI', 'TA_CDLLONGLINE', 'TA_CDLMARUBOZU', 'TA_CDLMATCHINGLOW', 'TA_CDLMATHOLD', 'TA_CDLMORNINGDOJISTAR', 'TA_CDLMORNINGSTAR', 'TA_CDLONNECK', 'TA_CDLPIERCING', 'TA_CDLRICKSHAWMAN', 'TA_CDLRISEFALL3METHODS', 'TA_CDLSEPARATINGLINES', 'TA_CDLSHOOTINGSTAR', 'TA_CDLSHORTLINE', 'TA_CDLSPINNINGTOP', 'TA_CDLSTALLEDPATTERN', 'TA_CDLSTICKSANDWICH', 'TA_CDLTAKURI', 'TA_CDLTASUKIGAP', 'TA_CDLTHRUSTING', 'TA_CDLTRISTAR', 'TA_CDLUNIQUE3RIVER', 'TA_CDLUPSIDEGAP2CROWS', 'TA_CDLXSIDEGAP3METHODS', 'TA_CEIL', 'TA_CMO', 'TA_CORREL', 'TA_COS', 'TA_COSH', 'TA_DEMA', 'TA_DIV', 'TA_DX', 'TA_EMA', 'TA_EXP', 'TA_FLOOR', 'TA_HT_DCPERIOD', 'TA_HT_DCPHASE', 'TA_HT_PHASOR', 'TA_HT_SINE', 'TA_HT_TRENDLINE', 'TA_HT_TRENDMODE', 'TA_IMI', 'TA_KAMA', 'TA_LINEARREG', 'TA_LINEARREG_ANGLE', 'TA_LINEARREG_INTERCEPT', 'TA_LINEARREG_SLOPE', 'TA_LN', 'TA_LOG10', 'TA_MA', 'TA_MACD', 'TA_MACDEXT', 'TA_MACDFIX', 'TA_MAMA', 'TA_MAVP', 'TA_MAX', 'TA_MAXINDEX', 'TA_MEDPRICE', 'TA_MFI', 'TA_MIDPOINT', 'TA_MIDPRICE', 'TA_MIN', 'TA_MININDEX', 'TA_MINMAX', 'TA_MINMAXINDEX', 'TA_MINUS_DI', 'TA_MINUS_DM', 'TA_MOM', 'TA_MULT', 'TA_NATR', 'TA_OBV', 'TA_PLUS_DI', 'TA_PLUS_DM', 'TA_PPO', 'TA_ROC', 'TA_ROCP', 'TA_ROCR', 'TA_ROCR100', 'TA_RSI', 'TA_SAR', 'TA_SAREXT', 'TA_SIN', 'TA_SINH', 'TA_SMA', 'TA_SQRT', 'TA_STDDEV', 'TA_STOCH', 'TA_STOCHF', 'TA_STOCHRSI', 'TA_SUB', 'TA_SUM', 'TA_T3', 'TA_TAN', 'TA_TANH', 'TA_TEMA', 'TA_TRANGE', 'TA_TRIMA', 'TA_TRIX', 'TA_TSF', 'TA_TYPPRICE', 'TA_ULTOSC', 'TA_VAR', 'TA_WCLPRICE', 'TA_WILLR', 'TA_WMA', 'TC_FixedA', 'TC_FixedA2015', 'TC_FixedA2017', 'TC_TestStub', 'TC_Zero', 'TIME', 'TIMELINE', 'TIMELINEVOL', 'TR', 'TRACE', 'TURNOVER', 'TimeDelta', 'TimeLineList', 'TimeLineRecord', 'TradeCostBase', 'TradeManager', 'TradeRecord', 'TradeRecordList', 'TradeRequest', 'TransList', 'TransRecord', 'UPNDAY', 'UTCOffset', 'VAR', 'VARP', 'VIGOR', 'WARN', 'WEAVE', 'WEEK', 'WINNER', 'WITHDAY', 'WITHHALFYEAR', 'WITHHOUR', 'WITHHOUR2', 'WITHHOUR4', 'WITHKTYPE', 'WITHMIN', 'WITHMIN15', 'WITHMIN30', 'WITHMIN5', 'WITHMIN60', 'WITHMONTH', 'WITHQUARTER', 'WITHWEEK', 'WITHYEAR', 'WMA', 'YEAR', 'ZHBOND10', 'ZONGGUBEN', 'ZSCORE', 'active_device', 'backtest', 'batch_calculate_inds', 'bind_email', 'can_upgrade', 'close_ostream_to_python', 'close_spend_time', 'combinate_ind', 'combinate_index', 'constant', 'crtBrokerTM', 'crtSEOptimal', 'crtTM', 'crt_pf_strategy', 'crt_sys_strategy', 'dates_to_np', 'df_to_krecords', 'fetch_trial_license', 'find_optimal_system', 'find_optimal_system_multi', 'get_block', 'get_business_name', 'get_data_from_buffer_server', 'get_date_range', 'get_expire_date', 'get_funds_list', 'get_kdata', 'get_last_version', 'get_log_level', 'get_spot_from_buffer_server', 'get_stock', 'get_system_part_enum', 'get_system_part_name', 'get_version', 'get_version_git', 'get_version_with_build', 'hikyuu_init', 'inner_analysis_sys_list', 'inner_combinate_ind_analysis', 'inner_combinate_ind_analysis_with_block', 'is_valid_license', 'isinf', 'isnan', 'krecords_to_df', 'krecords_to_np', 'open_ostream_to_python', 'open_spend_time', 'parallel_run_pf', 'parallel_run_sys', 'positions_to_df', 'positions_to_np', 'register_extra_ktype', 'release_extra_ktype', 'remove_license', 'roundDown', 'roundEx', 'roundUp', 'run_in_strategy', 'scorerecords_to_df', 'scorerecords_to_np', 'set_log_level', 'set_python_in_interactive', 'set_python_in_jupyter', 'spot_agent_is_connected', 'spot_agent_is_running', 'start_data_server', 'start_spot_agent', 'stop_data_server', 'stop_spot_agent', 'systemweights_to_df', 'systemweights_to_np', 'timeline_to_df', 'timeline_to_np', 'toPriceList', 'trades_to_df', 'trades_to_np', 'translist_to_df', 'translist_to_np', 'view_license', 'weights_to_df', 'weights_to_np']
6
+ __all__: list[str] = ['ABS', 'ACOS', 'AD', 'ADVANCE', 'AF_EqualWeight', 'AF_FixedAmount', 'AF_FixedWeight', 'AF_FixedWeightList', 'AF_MultiFactor', 'AGG_COUNT', 'AGG_FUNC', 'AGG_MAD', 'AGG_MAX', 'AGG_MEAN', 'AGG_MEDIAN', 'AGG_MIN', 'AGG_PROD', 'AGG_QUANTILE', 'AGG_STD', 'AGG_SUM', 'AGG_VAR', 'AGG_VWAP', 'ALIGN', 'AMA', 'ASIN', 'ATAN', 'ATR', 'AVEDEV', 'AllocateFundsBase', 'BACKSET', 'BARSCOUNT', 'BARSLAST', 'BARSLASTCOUNT', 'BARSSINCE', 'BARSSINCEN', 'BETWEEN', 'BLOCKSETNUM', 'BUSINESS', 'Block', 'BlockInfoDriver', 'BorrowRecord', 'BrokerPositionRecord', 'CEILING', 'CN_Bool', 'CN_OPLine', 'CONTEXT', 'CONTEXT_K', 'CORR', 'COS', 'COST', 'COUNT', 'CROSS', 'CVAL', 'CYCLE', 'C_AMO', 'C_CLOSE', 'C_HIGH', 'C_KDATA', 'C_LOW', 'C_OPEN', 'C_VOL', 'ConditionBase', 'Constant', 'CostRecord', 'DATE', 'DAY', 'DEBUG', 'DECLINE', 'DEVSQ', 'DIFF', 'DISCARD', 'DMA', 'DOWNNDAY', 'DROPNA', 'DataDriverFactory', 'Datetime', 'DatetimeList', 'Days', 'EMA', 'ERROR', 'EVERY', 'EV_Bool', 'EV_TwoLine', 'EXIST', 'EXP', 'EnvironmentBase', 'FATAL', 'FILTER', 'FINANCE', 'FLOOR', 'FundsRecord', 'GROUP_COUNT', 'GROUP_FUNC', 'GROUP_MAX', 'GROUP_MEAN', 'GROUP_MIN', 'GROUP_PROD', 'GROUP_SUM', 'HHV', 'HHVBARS', 'HKUException', 'HOUR', 'HSL', 'Hours', 'IC', 'ICIR', 'IF', 'INBLOCK', 'INDEXA', 'INDEXADV', 'INDEXC', 'INDEXDEC', 'INDEXH', 'INDEXL', 'INDEXO', 'INDEXV', 'INFO', 'INSUM', 'INTPART', 'IR', 'ISINF', 'ISINFA', 'ISLASTBAR', 'ISNA', 'IndParam', 'Indicator', 'IndicatorImp', 'JUMPDOWN', 'JUMPUP', 'KALMAN', 'KDATA_PART', 'KData', 'KDataDriver', 'KDataToClickHouseImporter', 'KDataToHdf5Importer', 'KDataToMySQLImporter', 'KRecord', 'KRecordList', 'LAST', 'LASTVALUE', 'LIUTONGPAN', 'LLV', 'LLVBARS', 'LN', 'LOG', 'LOG_LEVEL', 'LONGCROSS', 'LoanRecord', 'MA', 'MACD', 'MAX', 'MDD', 'MF_EqualWeight', 'MF_ICIRWeight', 'MF_ICWeight', 'MF_Weight', 'MIN', 'MINUTE', 'MM_FixedCapital', 'MM_FixedCapitalFunds', 'MM_FixedCount', 'MM_FixedCountTps', 'MM_FixedPercent', 'MM_FixedRisk', 'MM_FixedUnits', 'MM_Nothing', 'MM_WilliamsFixedRisk', 'MOD', 'MONTH', 'MRR', 'MarketInfo', 'Microseconds', 'Milliseconds', 'Minutes', 'MoneyManagerBase', 'MultiFactorBase', 'NDAY', 'NORM_MinMax', 'NORM_NOTHING', 'NORM_Quantile', 'NORM_Quantile_Uniform', 'NORM_Zscore', 'NOT', 'NormalizeBase', 'OFF', 'OrderBrokerBase', 'PF_Simple', 'PF_WithoutAF', 'PG_FixedHoldDays', 'PG_FixedPercent', 'PG_NoGoal', 'POS', 'POW', 'PRICELIST', 'Parameter', 'Performance', 'Portfolio', 'PositionRecord', 'PositionRecordList', 'ProfitGoalBase', 'QUANTILE_TRUNC', 'Query', 'RANK', 'RECOVER_BACKWARD', 'RECOVER_EQUAL_BACKWARD', 'RECOVER_EQUAL_FORWARD', 'RECOVER_FORWARD', 'REF', 'REFX', 'REPLACE', 'RESULT', 'REVERSE', 'ROC', 'ROCP', 'ROCR', 'ROCR100', 'ROUND', 'ROUNDDOWN', 'ROUNDUP', 'RSI', 'SAFTYLOSS', 'SCFilter_AmountLimit', 'SCFilter_Group', 'SCFilter_IgnoreNan', 'SCFilter_LessOrEqualValue', 'SCFilter_Price', 'SCFilter_TopN', 'SE_EvaluateOptimal', 'SE_Fixed', 'SE_MaxFundsOptimal', 'SE_MultiFactor', 'SE_MultiFactor2', 'SE_PerformanceOptimal', 'SE_Signal', 'SGN', 'SG_Add', 'SG_AllwaysBuy', 'SG_And', 'SG_Band', 'SG_Bool', 'SG_Buy', 'SG_Cross', 'SG_CrossGold', 'SG_Cycle', 'SG_Div', 'SG_Flex', 'SG_Mul', 'SG_OneSide', 'SG_Or', 'SG_Sell', 'SG_Single', 'SG_Single2', 'SG_Sub', 'SIN', 'SLICE', 'SLOPE', 'SMA', 'SPEARMAN', 'SP_FixedPercent', 'SP_FixedValue', 'SP_LogNormal', 'SP_Normal', 'SP_TruncNormal', 'SP_Uniform', 'SQRT', 'STDEV', 'STDP', 'ST_FixedPercent', 'ST_Indicator', 'ST_Saftyloss', 'SUM', 'SUMBARS', 'SYS_Simple', 'SYS_WalkForward', 'ScoreRecord', 'ScoreRecordList', 'ScoresFilterBase', 'Seconds', 'SelectorBase', 'SignalBase', 'SlippageBase', 'SpotRecord', 'Stock', 'StockManager', 'StockTypeInfo', 'StockWeight', 'StockWeightList', 'StoplossBase', 'Strategy', 'StrategyContext', 'System', 'SystemPart', 'SystemWeight', 'SystemWeightList', 'TAN', 'TA_ACCBANDS', 'TA_ACOS', 'TA_AD', 'TA_ADD', 'TA_ADOSC', 'TA_ADX', 'TA_ADXR', 'TA_APO', 'TA_AROON', 'TA_AROONOSC', 'TA_ASIN', 'TA_ATAN', 'TA_ATR', 'TA_AVGDEV', 'TA_AVGPRICE', 'TA_BBANDS', 'TA_BETA', 'TA_BOP', 'TA_CCI', 'TA_CDL2CROWS', 'TA_CDL3BLACKCROWS', 'TA_CDL3INSIDE', 'TA_CDL3LINESTRIKE', 'TA_CDL3OUTSIDE', 'TA_CDL3STARSINSOUTH', 'TA_CDL3WHITESOLDIERS', 'TA_CDLABANDONEDBABY', 'TA_CDLADVANCEBLOCK', 'TA_CDLBELTHOLD', 'TA_CDLBREAKAWAY', 'TA_CDLCLOSINGMARUBOZU', 'TA_CDLCONCEALBABYSWALL', 'TA_CDLCOUNTERATTACK', 'TA_CDLDARKCLOUDCOVER', 'TA_CDLDOJI', 'TA_CDLDOJISTAR', 'TA_CDLDRAGONFLYDOJI', 'TA_CDLENGULFING', 'TA_CDLEVENINGDOJISTAR', 'TA_CDLEVENINGSTAR', 'TA_CDLGAPSIDESIDEWHITE', 'TA_CDLGRAVESTONEDOJI', 'TA_CDLHAMMER', 'TA_CDLHANGINGMAN', 'TA_CDLHARAMI', 'TA_CDLHARAMICROSS', 'TA_CDLHIGHWAVE', 'TA_CDLHIKKAKE', 'TA_CDLHIKKAKEMOD', 'TA_CDLHOMINGPIGEON', 'TA_CDLIDENTICAL3CROWS', 'TA_CDLINNECK', 'TA_CDLINVERTEDHAMMER', 'TA_CDLKICKING', 'TA_CDLKICKINGBYLENGTH', 'TA_CDLLADDERBOTTOM', 'TA_CDLLONGLEGGEDDOJI', 'TA_CDLLONGLINE', 'TA_CDLMARUBOZU', 'TA_CDLMATCHINGLOW', 'TA_CDLMATHOLD', 'TA_CDLMORNINGDOJISTAR', 'TA_CDLMORNINGSTAR', 'TA_CDLONNECK', 'TA_CDLPIERCING', 'TA_CDLRICKSHAWMAN', 'TA_CDLRISEFALL3METHODS', 'TA_CDLSEPARATINGLINES', 'TA_CDLSHOOTINGSTAR', 'TA_CDLSHORTLINE', 'TA_CDLSPINNINGTOP', 'TA_CDLSTALLEDPATTERN', 'TA_CDLSTICKSANDWICH', 'TA_CDLTAKURI', 'TA_CDLTASUKIGAP', 'TA_CDLTHRUSTING', 'TA_CDLTRISTAR', 'TA_CDLUNIQUE3RIVER', 'TA_CDLUPSIDEGAP2CROWS', 'TA_CDLXSIDEGAP3METHODS', 'TA_CEIL', 'TA_CMO', 'TA_CORREL', 'TA_COS', 'TA_COSH', 'TA_DEMA', 'TA_DIV', 'TA_DX', 'TA_EMA', 'TA_EXP', 'TA_FLOOR', 'TA_HT_DCPERIOD', 'TA_HT_DCPHASE', 'TA_HT_PHASOR', 'TA_HT_SINE', 'TA_HT_TRENDLINE', 'TA_HT_TRENDMODE', 'TA_IMI', 'TA_KAMA', 'TA_LINEARREG', 'TA_LINEARREG_ANGLE', 'TA_LINEARREG_INTERCEPT', 'TA_LINEARREG_SLOPE', 'TA_LN', 'TA_LOG10', 'TA_MA', 'TA_MACD', 'TA_MACDEXT', 'TA_MACDFIX', 'TA_MAMA', 'TA_MAVP', 'TA_MAX', 'TA_MAXINDEX', 'TA_MEDPRICE', 'TA_MFI', 'TA_MIDPOINT', 'TA_MIDPRICE', 'TA_MIN', 'TA_MININDEX', 'TA_MINMAX', 'TA_MINMAXINDEX', 'TA_MINUS_DI', 'TA_MINUS_DM', 'TA_MOM', 'TA_MULT', 'TA_NATR', 'TA_OBV', 'TA_PLUS_DI', 'TA_PLUS_DM', 'TA_PPO', 'TA_ROC', 'TA_ROCP', 'TA_ROCR', 'TA_ROCR100', 'TA_RSI', 'TA_SAR', 'TA_SAREXT', 'TA_SIN', 'TA_SINH', 'TA_SMA', 'TA_SQRT', 'TA_STDDEV', 'TA_STOCH', 'TA_STOCHF', 'TA_STOCHRSI', 'TA_SUB', 'TA_SUM', 'TA_T3', 'TA_TAN', 'TA_TANH', 'TA_TEMA', 'TA_TRANGE', 'TA_TRIMA', 'TA_TRIX', 'TA_TSF', 'TA_TYPPRICE', 'TA_ULTOSC', 'TA_VAR', 'TA_WCLPRICE', 'TA_WILLR', 'TA_WMA', 'TC_FixedA', 'TC_FixedA2015', 'TC_FixedA2017', 'TC_TestStub', 'TC_Zero', 'TIME', 'TIMELINE', 'TIMELINEVOL', 'TR', 'TRACE', 'TURNOVER', 'TimeDelta', 'TimeLineList', 'TimeLineRecord', 'TradeCostBase', 'TradeManager', 'TradeRecord', 'TradeRecordList', 'TradeRequest', 'TransList', 'TransRecord', 'UPNDAY', 'UTCOffset', 'VAR', 'VARP', 'VIGOR', 'WARN', 'WEAVE', 'WEEK', 'WINNER', 'WITHDAY', 'WITHHALFYEAR', 'WITHHOUR', 'WITHHOUR2', 'WITHHOUR4', 'WITHKTYPE', 'WITHMIN', 'WITHMIN15', 'WITHMIN30', 'WITHMIN5', 'WITHMIN60', 'WITHMONTH', 'WITHQUARTER', 'WITHWEEK', 'WITHYEAR', 'WMA', 'YEAR', 'ZHBOND10', 'ZONGGUBEN', 'ZSCORE', 'active_device', 'backtest', 'batch_calculate_inds', 'bind_email', 'can_upgrade', 'check_data', 'close_ostream_to_python', 'close_spend_time', 'combinate_ind', 'combinate_index', 'constant', 'crtBrokerTM', 'crtSEOptimal', 'crtTM', 'crt_pf_strategy', 'crt_sys_strategy', 'dates_to_np', 'df_to_krecords', 'enable_kdata_cache', 'fetch_trial_license', 'find_optimal_system', 'find_optimal_system_multi', 'get_block', 'get_business_name', 'get_data_from_buffer_server', 'get_date_range', 'get_expire_date', 'get_funds_list', 'get_kdata', 'get_latest_version_info', 'get_log_level', 'get_spot_from_buffer_server', 'get_stock', 'get_system_part_enum', 'get_system_part_name', 'get_version', 'get_version_git', 'get_version_with_build', 'hikyuu_init', 'inner_analysis_sys_list', 'inner_combinate_ind_analysis', 'inner_combinate_ind_analysis_with_block', 'is_valid_license', 'isinf', 'isnan', 'krecords_to_df', 'krecords_to_np', 'open_ostream_to_python', 'open_spend_time', 'parallel_run_pf', 'parallel_run_sys', 'positions_to_df', 'positions_to_np', 'register_extra_ktype', 'release_extra_ktype', 'remove_license', 'roundDown', 'roundEx', 'roundUp', 'run_in_strategy', 'scorerecords_to_df', 'scorerecords_to_np', 'set_log_level', 'set_python_in_interactive', 'set_python_in_jupyter', 'spot_agent_is_connected', 'spot_agent_is_running', 'start_data_server', 'start_spot_agent', 'stop_data_server', 'stop_spot_agent', 'systemweights_to_df', 'systemweights_to_np', 'timeline_to_df', 'timeline_to_np', 'toPriceList', 'trades_to_df', 'trades_to_np', 'translist_to_df', 'translist_to_np', 'view_license', 'weights_to_df', 'weights_to_np']
7
7
  class AllocateFundsBase:
8
8
  """
9
9
  资产分配算法基类, 子类接口:
@@ -154,6 +154,8 @@ class BUSINESS:
154
154
 
155
155
  RETURN_STOCK
156
156
 
157
+ SUOGU
158
+
157
159
  INVALID
158
160
  """
159
161
  BONUS: typing.ClassVar[BUSINESS] # value = <BUSINESS.BONUS: 4>
@@ -167,12 +169,13 @@ class BUSINESS:
167
169
  CHECKOUT_STOCK: typing.ClassVar[BUSINESS] # value = <BUSINESS.CHECKOUT_STOCK: 8>
168
170
  GIFT: typing.ClassVar[BUSINESS] # value = <BUSINESS.GIFT: 3>
169
171
  INIT: typing.ClassVar[BUSINESS] # value = <BUSINESS.INIT: 0>
170
- INVALID: typing.ClassVar[BUSINESS] # value = <BUSINESS.INVALID: 15>
172
+ INVALID: typing.ClassVar[BUSINESS] # value = <BUSINESS.INVALID: 16>
171
173
  RETURN_CASH: typing.ClassVar[BUSINESS] # value = <BUSINESS.RETURN_CASH: 10>
172
174
  RETURN_STOCK: typing.ClassVar[BUSINESS] # value = <BUSINESS.RETURN_STOCK: 12>
173
175
  SELL: typing.ClassVar[BUSINESS] # value = <BUSINESS.SELL: 2>
174
176
  SELL_SHORT: typing.ClassVar[BUSINESS] # value = <BUSINESS.SELL_SHORT: 13>
175
- __members__: typing.ClassVar[dict[str, BUSINESS]] # value = {'INIT': <BUSINESS.INIT: 0>, 'BUY': <BUSINESS.BUY: 1>, 'SELL': <BUSINESS.SELL: 2>, 'BUY_SHORT': <BUSINESS.BUY_SHORT: 14>, 'SELL_SHORT': <BUSINESS.SELL_SHORT: 13>, 'GIFT': <BUSINESS.GIFT: 3>, 'BONUS': <BUSINESS.BONUS: 4>, 'CHECKIN': <BUSINESS.CHECKIN: 5>, 'CHECKOUT': <BUSINESS.CHECKOUT: 6>, 'CHECKIN_STOCK': <BUSINESS.CHECKIN_STOCK: 7>, 'CHECKOUT_STOCK': <BUSINESS.CHECKOUT_STOCK: 8>, 'BORROW_CASH': <BUSINESS.BORROW_CASH: 9>, 'RETURN_CASH': <BUSINESS.RETURN_CASH: 10>, 'BORROW_STOCK': <BUSINESS.BORROW_STOCK: 11>, 'RETURN_STOCK': <BUSINESS.RETURN_STOCK: 12>, 'INVALID': <BUSINESS.INVALID: 15>}
177
+ SUOGU: typing.ClassVar[BUSINESS] # value = <BUSINESS.SUOGU: 15>
178
+ __members__: typing.ClassVar[dict[str, BUSINESS]] # value = {'INIT': <BUSINESS.INIT: 0>, 'BUY': <BUSINESS.BUY: 1>, 'SELL': <BUSINESS.SELL: 2>, 'BUY_SHORT': <BUSINESS.BUY_SHORT: 14>, 'SELL_SHORT': <BUSINESS.SELL_SHORT: 13>, 'GIFT': <BUSINESS.GIFT: 3>, 'BONUS': <BUSINESS.BONUS: 4>, 'CHECKIN': <BUSINESS.CHECKIN: 5>, 'CHECKOUT': <BUSINESS.CHECKOUT: 6>, 'CHECKIN_STOCK': <BUSINESS.CHECKIN_STOCK: 7>, 'CHECKOUT_STOCK': <BUSINESS.CHECKOUT_STOCK: 8>, 'BORROW_CASH': <BUSINESS.BORROW_CASH: 9>, 'RETURN_CASH': <BUSINESS.RETURN_CASH: 10>, 'BORROW_STOCK': <BUSINESS.BORROW_STOCK: 11>, 'RETURN_STOCK': <BUSINESS.RETURN_STOCK: 12>, 'SUOGU': <BUSINESS.SUOGU: 15>, 'INVALID': <BUSINESS.INVALID: 16>}
176
179
  def __eq__(self, other: typing.Any) -> bool:
177
180
  ...
178
181
  def __getstate__(self) -> int:
@@ -1523,6 +1526,7 @@ class Indicator:
1523
1526
  """
1524
1527
  技术指标
1525
1528
  """
1529
+ enable_increment_calculate: typing.ClassVar[bool] = True
1526
1530
  @staticmethod
1527
1531
  def bar(indicator, new = True, axes = None, kref = None, legend_on = False, text_on = False, text_color = 'k', label = None, width = 0.4, color = 'r', edgecolor = 'r', zero_on = False, *args, **kwargs):
1528
1532
  """
@@ -1774,6 +1778,12 @@ class Indicator:
1774
1778
  """
1775
1779
  def equal(self, arg0: Indicator) -> bool:
1776
1780
  ...
1781
+ def extend(self) -> None:
1782
+ """
1783
+ extend(self)
1784
+
1785
+ 在有上下文时,自动将上下文扩展至当前最新数据并计算
1786
+ """
1777
1787
  def formula(self) -> str:
1778
1788
  """
1779
1789
  formula(self)
@@ -1887,7 +1897,7 @@ class Indicator:
1887
1897
  """
1888
1898
  def have_ind_param(self, arg0: str) -> bool:
1889
1899
  """
1890
- 是否存在指定的动态指标参数
1900
+ 是否存在指定的动态周期指标参数
1891
1901
  """
1892
1902
  def have_param(self, arg0: str) -> bool:
1893
1903
  """
@@ -1945,10 +1955,6 @@ class Indicator:
1945
1955
  :type value: int | bool | float | string | Query | KData | Stock | DatetimeList
1946
1956
  :raises logic_error: Unsupported type! 不支持的参数类型
1947
1957
  """
1948
- def support_ind_param(self) -> bool:
1949
- """
1950
- 是否支持动态指标参数
1951
- """
1952
1958
  def to_array(self, result_index: typing.SupportsInt = 0) -> numpy.typing.NDArray[numpy.float64]:
1953
1959
  """
1954
1960
  将指定结果集转化为numpy.array
@@ -1987,6 +1993,9 @@ class Indicator:
1987
1993
  @name.setter
1988
1994
  def name(self, arg1: str) -> None:
1989
1995
  ...
1996
+ @property
1997
+ def optype(self) -> str:
1998
+ ...
1990
1999
  class IndicatorImp:
1991
2000
  """
1992
2001
  指标实现类,定义新指标时,应从此类继承
@@ -2073,8 +2082,6 @@ class IndicatorImp:
2073
2082
  ...
2074
2083
  def set_param(self, arg0: str, arg1: any) -> None:
2075
2084
  ...
2076
- def support_ind_param(self) -> bool:
2077
- ...
2078
2085
  @property
2079
2086
  def discard(self) -> int:
2080
2087
  """
@@ -2221,14 +2228,12 @@ class KData:
2221
2228
  :rtype: KData
2222
2229
  """
2223
2230
  @typing.overload
2224
- def get_kdata(self, start: typing.SupportsInt, end: typing.SupportsInt = 9223372036854775807) -> KData:
2231
+ def get_kdata(self, arg0: Query) -> KData:
2225
2232
  """
2226
- get_kdata(self, start, end)
2227
-
2228
- 通过索引获取 KData 子集,相当于切片
2229
-
2230
- :param int start: 索引起始位置
2231
- :param int end: 索引结束位置
2233
+ get_kdata(query)
2234
+
2235
+ 通过当前 KData 获取获取另一个 KData,不一定是其子集
2236
+
2232
2237
  :rtype: KData
2233
2238
  """
2234
2239
  def get_pos(self, arg0: Datetime) -> typing.Any:
@@ -2265,6 +2270,16 @@ class KData:
2265
2270
 
2266
2271
  :rtype: Stock
2267
2272
  """
2273
+ def get_sub_kdata(self, start: typing.SupportsInt, end: typing.SupportsInt = 9223372036854775807) -> KData:
2274
+ """
2275
+ get_sub_kdata(start, end = Null<int64_t>)
2276
+
2277
+ 通过索引获取自身子集
2278
+
2279
+ :param int start: 起始索引
2280
+ :param int end: 结束索引
2281
+ :rtype: KData
2282
+ """
2268
2283
  def to_df(self, with_stock: bool = False) -> typing.Any:
2269
2284
  """
2270
2285
  to_df(self, with_stock=False) -> pandas.DataFrame
@@ -2391,6 +2406,20 @@ class KDataDriver:
2391
2406
  """
2392
2407
  驱动名称
2393
2408
  """
2409
+ class KDataToClickHouseImporter:
2410
+ """
2411
+ K线数据导入器
2412
+ """
2413
+ def __init__(self) -> None:
2414
+ ...
2415
+ def remove(self, arg0: str, arg1: str, arg2: str, arg3: Datetime) -> None:
2416
+ """
2417
+ 删除指定时间及其之后的K线数据
2418
+ """
2419
+ def set_config(self, host: str, port: typing.SupportsInt = 9000, usr: str = 'default', pwd: str = '') -> bool:
2420
+ """
2421
+ 设置数据保存路径和数据源列表
2422
+ """
2394
2423
  class KDataToHdf5Importer:
2395
2424
  """
2396
2425
  K线数据导入器
@@ -2425,6 +2454,20 @@ class KDataToHdf5Importer:
2425
2454
  """
2426
2455
  更新索引
2427
2456
  """
2457
+ class KDataToMySQLImporter:
2458
+ """
2459
+ K线数据导入器
2460
+ """
2461
+ def __init__(self) -> None:
2462
+ ...
2463
+ def remove(self, arg0: str, arg1: str, arg2: str, arg3: Datetime) -> None:
2464
+ """
2465
+ 删除指定时间及其之后的K线数据
2466
+ """
2467
+ def set_config(self, host: str, port: typing.SupportsInt = 9000, usr: str = 'default', pwd: str = '') -> bool:
2468
+ """
2469
+ 设置数据保存路径和数据源列表
2470
+ """
2428
2471
  class KRecord:
2429
2472
  """
2430
2473
  K线记录,组成K线数据,属性可读写
@@ -2984,7 +3027,7 @@ class MultiFactorBase:
2984
3027
  ...
2985
3028
  def __str__(self) -> str:
2986
3029
  ...
2987
- def add_special_normalize(self, name: str, norm: NormalizeBase = None, category: str = '', style_inds: collections.abc.Sequence[Indicator] = []) -> None:
3030
+ def add_special_normalize(self, name: str, norm: typing.Any = None, category: str = '', style_inds: collections.abc.Sequence[Indicator] = []) -> None:
2988
3031
  """
2989
3032
  add_special_normalize(self, name[, norm=None, category="", style_inds=[]])
2990
3033
 
@@ -3099,7 +3142,7 @@ class MultiFactorBase:
3099
3142
  """
3100
3143
  是否存在指定参数
3101
3144
  """
3102
- def set_normalize(self, norm: NormalizeBase) -> None:
3145
+ def set_normalize(self, norm: typing.Any) -> None:
3103
3146
  """
3104
3147
  set_normalize(self, norm)
3105
3148
 
@@ -3517,7 +3560,7 @@ class Portfolio:
3517
3560
  设置或获取资产分配算法
3518
3561
  """
3519
3562
  @af.setter
3520
- def af(self, arg1: AllocateFundsBase) -> None:
3563
+ def af(self, arg1: typing.Any) -> None:
3521
3564
  ...
3522
3565
  @property
3523
3566
  def name(self) -> str:
@@ -3546,7 +3589,7 @@ class Portfolio:
3546
3589
  设置或获取交易对象选择算法
3547
3590
  """
3548
3591
  @se.setter
3549
- def se(self, arg1: SelectorBase) -> None:
3592
+ def se(self, arg1: typing.Any) -> None:
3550
3593
  ...
3551
3594
  @property
3552
3595
  def tm(self) -> TradeManager:
@@ -3554,7 +3597,7 @@ class Portfolio:
3554
3597
  设置或获取交易管理对象
3555
3598
  """
3556
3599
  @tm.setter
3557
- def tm(self, arg1: TradeManager) -> None:
3600
+ def tm(self, arg1: typing.Any) -> None:
3558
3601
  ...
3559
3602
  class PositionRecord:
3560
3603
  """
@@ -3837,8 +3880,8 @@ class ProfitGoalBase:
3837
3880
 
3838
3881
  【重载接口】获取盈利目标价格,返回constant.null_price时,表示未限定目标;返回0意味着需要卖出
3839
3882
 
3840
- :param Datetime datetime: 买入时间
3841
- :param float price: 买入价格
3883
+ :param Datetime datetime: 当前时间
3884
+ :param float price: 当前价格
3842
3885
  :return: 目标价格
3843
3886
  :rtype: float
3844
3887
  """
@@ -4389,7 +4432,7 @@ class SelectorBase:
4389
4432
  """
4390
4433
  子类复位操作实现
4391
4434
  """
4392
- def add_scores_filter(self, arg0: ScoresFilterBase) -> None:
4435
+ def add_scores_filter(self, arg0: typing.Any) -> None:
4393
4436
  """
4394
4437
  add_scores_filter(self, filter)
4395
4438
 
@@ -4406,7 +4449,7 @@ class SelectorBase:
4406
4449
  :param Stock stock: 加入的初始标的
4407
4450
  :param System sys: 系统策略原型
4408
4451
  """
4409
- def add_stock_list(self, stk_list: collections.abc.Sequence, sys: ...) -> None:
4452
+ def add_stock_list(self, stk_list: typing.Any, sys: ...) -> None:
4410
4453
  """
4411
4454
  add_stock_list(self, stk_list, sys)
4412
4455
 
@@ -4479,7 +4522,7 @@ class SelectorBase:
4479
4522
  :param value: 参数值
4480
4523
  :raises logic_error: Unsupported type! 不支持的参数类型
4481
4524
  """
4482
- def set_scores_filter(self, arg0: ScoresFilterBase) -> None:
4525
+ def set_scores_filter(self, arg0: typing.Any) -> None:
4483
4526
  """
4484
4527
  set_scores_filter(self, filter)
4485
4528
 
@@ -4492,6 +4535,9 @@ class SelectorBase:
4492
4535
  """
4493
4536
  获取关联的 MF
4494
4537
  """
4538
+ @mf.setter
4539
+ def mf(self, arg1: typing.Any) -> None:
4540
+ ...
4495
4541
  @property
4496
4542
  def name(self) -> str:
4497
4543
  """
@@ -5116,7 +5162,7 @@ class Stock:
5116
5162
 
5117
5163
  :param Query.KType ktype: K线类型
5118
5164
  """
5119
- def set_kdata_from_df(self, df: typing.Any, cols: collections.abc.Sequence[str], ktype: str = 'DAY') -> None:
5165
+ def set_kdata_from_df(self, df: typing.Any, cols: collections.abc.Sequence[str] = ['datetime', 'open', 'high', 'low', 'close', 'amount', 'volume'], ktype: str = 'DAY') -> None:
5120
5166
  """
5121
5167
  set_kdata_from_df(self, df, cols, [ktype=Query.DAY])
5122
5168
 
@@ -5310,6 +5356,10 @@ class StockManager:
5310
5356
  :return: 加入的Stock
5311
5357
  :rtype: Stock
5312
5358
  """
5359
+ def cancel_load(self) -> None:
5360
+ """
5361
+ 取消所有数据加载
5362
+ """
5313
5363
  def datadir(self) -> str:
5314
5364
  """
5315
5365
  datadir(self) -> str
@@ -5345,6 +5395,16 @@ class StockManager:
5345
5395
  :return: 板块列表
5346
5396
  :rtype: BlockList
5347
5397
  """
5398
+ def get_block_list_by_index_stock(self, index_stk: ...) -> list[...]:
5399
+ """
5400
+ get_block_list_by_index_stock(self, index_stk)
5401
+
5402
+ 获取指定指数的板块列表
5403
+
5404
+ :param Stock index_stk: 指数
5405
+ :return: 板块列表
5406
+ :rtype: BlockList
5407
+ """
5348
5408
  def get_block_parameter(self) -> ...:
5349
5409
  """
5350
5410
  获取当前板块信息驱动参数
@@ -6337,7 +6397,7 @@ class System:
6337
6397
  系统有效条件
6338
6398
  """
6339
6399
  @cn.setter
6340
- def cn(self, arg1: ConditionBase) -> None:
6400
+ def cn(self, arg1: typing.Any) -> None:
6341
6401
  ...
6342
6402
  @property
6343
6403
  def ev(self) -> EnvironmentBase:
@@ -6345,7 +6405,7 @@ class System:
6345
6405
  市场环境判断策略
6346
6406
  """
6347
6407
  @ev.setter
6348
- def ev(self, arg1: EnvironmentBase) -> None:
6408
+ def ev(self, arg1: typing.Any) -> None:
6349
6409
  ...
6350
6410
  @property
6351
6411
  def mm(self) -> MoneyManagerBase:
@@ -6353,7 +6413,7 @@ class System:
6353
6413
  资金管理策略
6354
6414
  """
6355
6415
  @mm.setter
6356
- def mm(self, arg1: MoneyManagerBase) -> None:
6416
+ def mm(self, arg1: typing.Any) -> None:
6357
6417
  ...
6358
6418
  @property
6359
6419
  def name(self) -> str:
@@ -6369,7 +6429,7 @@ class System:
6369
6429
  盈利目标策略
6370
6430
  """
6371
6431
  @pg.setter
6372
- def pg(self, arg1: ProfitGoalBase) -> None:
6432
+ def pg(self, arg1: typing.Any) -> None:
6373
6433
  ...
6374
6434
  @property
6375
6435
  def query(self) -> Query:
@@ -6382,7 +6442,7 @@ class System:
6382
6442
  信号指示器
6383
6443
  """
6384
6444
  @sg.setter
6385
- def sg(self, arg1: SignalBase) -> None:
6445
+ def sg(self, arg1: typing.Any) -> None:
6386
6446
  ...
6387
6447
  @property
6388
6448
  def sp(self) -> SlippageBase:
@@ -6390,7 +6450,7 @@ class System:
6390
6450
  移滑价差算法
6391
6451
  """
6392
6452
  @sp.setter
6393
- def sp(self, arg1: SlippageBase) -> None:
6453
+ def sp(self, arg1: typing.Any) -> None:
6394
6454
  ...
6395
6455
  @property
6396
6456
  def st(self) -> StoplossBase:
@@ -6398,7 +6458,7 @@ class System:
6398
6458
  止损策略
6399
6459
  """
6400
6460
  @st.setter
6401
- def st(self, arg1: StoplossBase) -> None:
6461
+ def st(self, arg1: typing.Any) -> None:
6402
6462
  ...
6403
6463
  @property
6404
6464
  def tm(self) -> TradeManager:
@@ -6406,7 +6466,7 @@ class System:
6406
6466
  关联的交易管理实例
6407
6467
  """
6408
6468
  @tm.setter
6409
- def tm(self, arg1: TradeManager) -> None:
6469
+ def tm(self, arg1: typing.Any) -> None:
6410
6470
  ...
6411
6471
  @property
6412
6472
  def to(self) -> KData:
@@ -6422,7 +6482,7 @@ class System:
6422
6482
  止盈策略
6423
6483
  """
6424
6484
  @tp.setter
6425
- def tp(self, arg1: StoplossBase) -> None:
6485
+ def tp(self, arg1: typing.Any) -> None:
6426
6486
  ...
6427
6487
  class SystemPart:
6428
6488
  """
@@ -8126,6 +8186,14 @@ def AF_EqualWeight() -> AllocateFundsBase:
8126
8186
 
8127
8187
  等权重资产分配,对选中的资产进行等比例分配
8128
8188
  """
8189
+ def AF_FixedAmount(amount: typing.SupportsFloat = 20000.0) -> AllocateFundsBase:
8190
+ """
8191
+ AF_FixedAmount(amount)
8192
+
8193
+ 等金额资产分配,对选中的资产进行等金额分配
8194
+
8195
+ :param float amount: 交易最大金额
8196
+ """
8129
8197
  def AF_FixedWeight(weight: typing.SupportsFloat = 0.1) -> AllocateFundsBase:
8130
8198
  """
8131
8199
  AF_FixedWeight(weight)
@@ -8156,7 +8224,7 @@ def AGG_FUNC(ind: Indicator, agg_func: typing.Any, ktype: str = 'MIN', fill_null
8156
8224
  """
8157
8225
  AGG_FUNC(ind, agg_func[, ktype=Query.MIN, fill_null=False, unit=1]
8158
8226
 
8159
- 使用自定函数聚合其他K线周期的指标。虽然支持python自定义函数, 但python函数需要GIL, 速度会慢。建议最好直接使用 C++ 自定义聚合函数。
8227
+ 使用自定函数聚合其他K线周期的指标。
8160
8228
 
8161
8229
  示例, 计算日线时聚合分钟线收盘价的和:
8162
8230
 
@@ -8250,6 +8318,19 @@ def AGG_VAR(ind: Indicator, ktype: str = 'MIN', fill_null: bool = False, unit: t
8250
8318
  :return: 指标数据
8251
8319
  :rtype: Indicator
8252
8320
  """
8321
+ def AGG_VWAP(ktype: str = 'MIN', fill_null: bool = False, unit: typing.SupportsInt = 1) -> Indicator:
8322
+ """
8323
+ AGG_VWAP([ktype=Query.MIN, fill_null=False, unit=1])
8324
+
8325
+ 聚合其他K线成交量加权平均价格(Volume Weighted Average Price)
8326
+ VWAP 是成交量加权的平均价格,计算方式是将每一分钟(或单位时间)的成交量乘以该分钟的成交价格,然后对所有乘积求和,最后除以总成交量。
8327
+
8328
+ :param KQuery.KType ktype: 聚合的K线周期
8329
+ :param bool fill_null: 是否填充缺失值
8330
+ :param int unit: 聚合周期单位 (上下文K线分组单位, 使用日线计算分钟线聚合时, unit=2代表聚合2天的分钟线)
8331
+ :return: 指标数据
8332
+ :rtype: Indicator
8333
+ """
8253
8334
  @typing.overload
8254
8335
  def ALIGN(ref: DatetimeList, fill_null: bool = True) -> Indicator:
8255
8336
  ...
@@ -8528,10 +8609,10 @@ def BLOCKSETNUM(block: Block, query: Query) -> Indicator:
8528
8609
  :param Query query: 统计范围
8529
8610
  """
8530
8611
  @typing.overload
8531
- def BLOCKSETNUM(stks: collections.abc.Sequence) -> Indicator:
8612
+ def BLOCKSETNUM(stks: typing.Any) -> Indicator:
8532
8613
  ...
8533
8614
  @typing.overload
8534
- def BLOCKSETNUM(stks: collections.abc.Sequence, query: Query) -> Indicator:
8615
+ def BLOCKSETNUM(stks: typing.Any, query: Query) -> Indicator:
8535
8616
  """
8536
8617
  BLOCKSETNUM(block, query)
8537
8618
 
@@ -8598,12 +8679,26 @@ def CONTEXT(ind: Indicator, fill_null: bool = False, use_self_ktype: bool = Fals
8598
8679
  :param bool use_self_recover_type: 公式计算时使用自身独立上下文中的RECOVER_TYPE
8599
8680
  :rtype: Indicator
8600
8681
  """
8682
+ @typing.overload
8683
+ def CONTEXT(ind: Indicator, stock: Stock, fill_null: bool = False) -> Indicator:
8684
+ """
8685
+ CONTEXT(ind, stock[, fill_null=False])
8686
+
8687
+ 通过指定股票,设置指标独立上下文指标, 忽略传入ind自身上下文, 直接使用stock的作为上下文
8688
+
8689
+ :param Indicator ind: 指标对象
8690
+ :param Stock stock: 股票对象
8691
+ :param bool fill_null: 日期对齐时,缺失日期对应填充空值,否则使用前值填充。
8692
+ :rtype: Indicator
8693
+ """
8601
8694
  def CONTEXT_K(arg0: Indicator) -> KData:
8602
8695
  """
8603
8696
  CONTEXT_K(ind)
8604
8697
 
8605
8698
  获取指标上下文。Indicator::getContext()方法获取的是当前的上下文,但对于 CONTEXT 独立上下文指标无法获取其指定的独立上下文,需用此方法获取
8606
8699
 
8700
+ 该指标一旦作为公式,参与计算,其上下文可能发生变化,但其stock保持不变,仅query范围发生改变
8701
+
8607
8702
  :param Indicator ind: 指标对象
8608
8703
  :rtype: KData
8609
8704
  """
@@ -9155,7 +9250,7 @@ def GROUP_FUNC(ind: Indicator, group_func: typing.Any, ktype: str = 'DAY', unit:
9155
9250
  """
9156
9251
  GROUP_FUNC(ind, group_func[, ktype=Query.DAY, unit=1])
9157
9252
 
9158
- 自定义分组累积计算指标。虽然支持python自定义函数, 但python函数需要GIL, 速度较慢。建议最好直接使用 C++ 自定义分组累积函数。
9253
+ 自定义分组累积计算指标。
9159
9254
 
9160
9255
  示例, 计算日线时聚合分钟线收盘价的和:
9161
9256
 
@@ -9274,9 +9369,9 @@ def Hours(arg0: typing.SupportsInt) -> TimeDelta:
9274
9369
  :param int hours: 小时数
9275
9370
  :rtype: TimeDelta
9276
9371
  """
9277
- def IC(ind: Indicator, stks: typing.Any, query: Query, ref_stk: Stock, n: typing.SupportsInt = 1, spearman: bool = True, strict: bool = False) -> Indicator:
9372
+ def IC(ind: Indicator, stks: typing.Any, n: typing.SupportsInt = 1, spearman: bool = True, strict: bool = False) -> Indicator:
9278
9373
  """
9279
- IC(ind, stks, query, ref_stk[, n=1, spearman=True, strict=False]) -> Indicator
9374
+ IC(ind, stks[, n=1, spearman=True, strict=False]) -> Indicator
9280
9375
 
9281
9376
  计算指定的因子相对于参考证券的 IC (实际为 RankIC)
9282
9377
 
@@ -9287,22 +9382,18 @@ def IC(ind: Indicator, stks: typing.Any, query: Query, ref_stk: Stock, n: typing
9287
9382
 
9288
9383
  :param Indicator ind: 输入因子
9289
9384
  :param sequence(stock)|Block stks 证券组合
9290
- :param Query query: 查询条件
9291
- :param Stock ref_stk: 参照证券,通常使用 sh000300 沪深300
9292
9385
  :param int n: 时间窗口
9293
9386
  :param bool spearman: 使用 spearman 相关系数,否则为 pearson
9294
9387
  :param bool strict: 严格模式
9295
9388
  """
9296
- def ICIR(ind: Indicator, stks: typing.Any, query: Query, ref_stk: Stock, n: typing.SupportsInt = 1, rolling_n: typing.SupportsInt = 120, spearman: bool = True, strict: bool = False) -> Indicator:
9389
+ def ICIR(ind: Indicator, stks: typing.Any, n: typing.SupportsInt = 1, rolling_n: typing.SupportsInt = 120, spearman: bool = True, strict: bool = False) -> Indicator:
9297
9390
  """
9298
- ICIR(ind, stks, query, ref_stk[, n=1, rolling_n=120, spearman=True, strict=False])
9391
+ ICIR(ind, stks[, n=1, rolling_n=120, spearman=True, strict=False])
9299
9392
 
9300
9393
  计算 IC 因子 IR = IC的多周期均值/IC的标准方差
9301
9394
 
9302
9395
  :param Indicator ind: 输入因子
9303
9396
  :param sequence(stock)|Block stks 证券组合
9304
- :param Query query: 查询条件
9305
- :param Stock ref_stk: 参照证券,通常使用 sh000300 沪深300
9306
9397
  :param int n: 计算IC时对应的 n 日收益率
9307
9398
  :param int rolling_n: 滚动周期
9308
9399
  :param bool spearman: 使用 spearman 相关系数,否则为 pearson
@@ -9879,7 +9970,7 @@ def MDD(arg0: Indicator) -> Indicator:
9879
9970
  def MF_EqualWeight() -> MultiFactorBase:
9880
9971
  ...
9881
9972
  @typing.overload
9882
- def MF_EqualWeight(inds: collections.abc.Sequence, stks: collections.abc.Sequence, query: Query, ref_stk: typing.Any = None, ic_n: typing.SupportsInt = 5, spearman: bool = True, mode: typing.SupportsInt = 0, save_all_factors: bool = False) -> MultiFactorBase:
9973
+ def MF_EqualWeight(inds: collections.abc.Sequence, stks: typing.Any, query: Query, ref_stk: typing.Any = None, ic_n: typing.SupportsInt = 5, spearman: bool = True, mode: typing.SupportsInt = 0, save_all_factors: bool = False) -> MultiFactorBase:
9883
9974
  """
9884
9975
  MF_EqualWeight(inds, stks, query, ref_stk[, ic_n=5])
9885
9976
 
@@ -9888,7 +9979,7 @@ def MF_EqualWeight(inds: collections.abc.Sequence, stks: collections.abc.Sequenc
9888
9979
  :param sequense(Indicator) inds: 原始因子列表
9889
9980
  :param sequense(stock) stks: 计算证券列表
9890
9981
  :param Query query: 日期范围
9891
- :param Stock ref_stk: 参考证券 (未指定时,默认为 sh000300 沪深300)
9982
+ :param Stock ref_stk: 参考证券用于日期对齐 (未指定时,默认为 sh000001)
9892
9983
  :param int ic_n: 默认 IC 对应的 N 日收益率
9893
9984
  :param bool spearman: 默认使用 spearman 计算相关系数,否则为 pearson
9894
9985
  :param int mode: 获取截面数据时排序模式: 0-降序, 1-升序, 2-不排序
@@ -9899,16 +9990,16 @@ def MF_EqualWeight(inds: collections.abc.Sequence, stks: collections.abc.Sequenc
9899
9990
  def MF_ICIRWeight() -> MultiFactorBase:
9900
9991
  ...
9901
9992
  @typing.overload
9902
- def MF_ICIRWeight(inds: collections.abc.Sequence, stks: collections.abc.Sequence, query: Query, ref_stk: typing.Any = None, ic_n: typing.SupportsInt = 5, ic_rolling_n: typing.SupportsInt = 120, spearman: bool = True, mode: typing.SupportsInt = 0, save_all_factors: bool = False) -> MultiFactorBase:
9993
+ def MF_ICIRWeight(inds: collections.abc.Sequence, stks: typing.Any, query: Query, ref_stk: typing.Any = None, ic_n: typing.SupportsInt = 5, ic_rolling_n: typing.SupportsInt = 120, spearman: bool = True, mode: typing.SupportsInt = 0, save_all_factors: bool = False) -> MultiFactorBase:
9903
9994
  """
9904
- MF_EqualWeight(inds, stks, query, ref_stk[, ic_n=5, ic_rolling_n=120])
9995
+ MF_ICIRWeight(inds, stks, query, ref_stk[, ic_n=5, ic_rolling_n=120])
9905
9996
 
9906
9997
  滚动ICIR权重合成因子
9907
9998
 
9908
9999
  :param sequense(Indicator) inds: 原始因子列表
9909
10000
  :param sequense(stock) stks: 计算证券列表
9910
10001
  :param Query query: 日期范围
9911
- :param Stock ref_stk: 参考证券 (未指定时,默认为 sh000300 沪深300)
10002
+ :param Stock ref_stk: 用于日期对齐的参考证券 (未指定时,默认为 sh000001)
9912
10003
  :param int ic_n: 默认 IC 对应的 N 日收益率
9913
10004
  :param int ic_rolling_n: IC 滚动周期
9914
10005
  :param bool spearman: 默认使用 spearman 计算相关系数,否则为 pearson
@@ -9920,16 +10011,16 @@ def MF_ICIRWeight(inds: collections.abc.Sequence, stks: collections.abc.Sequence
9920
10011
  def MF_ICWeight() -> MultiFactorBase:
9921
10012
  ...
9922
10013
  @typing.overload
9923
- def MF_ICWeight(inds: collections.abc.Sequence, stks: collections.abc.Sequence, query: Query, ref_stk: typing.Any = None, ic_n: typing.SupportsInt = 5, ic_rolling_n: typing.SupportsInt = 120, spearman: bool = True, mode: typing.SupportsInt = 0, save_all_factors: bool = False) -> MultiFactorBase:
10014
+ def MF_ICWeight(inds: collections.abc.Sequence, stks: typing.Any, query: Query, ref_stk: typing.Any = None, ic_n: typing.SupportsInt = 5, ic_rolling_n: typing.SupportsInt = 120, spearman: bool = True, mode: typing.SupportsInt = 0, save_all_factors: bool = False) -> MultiFactorBase:
9924
10015
  """
9925
- MF_EqualWeight(inds, stks, query, ref_stk[, ic_n=5, ic_rolling_n=120])
10016
+ MF_ICWeight(inds, stks, query, ref_stk[, ic_n=5, ic_rolling_n=120])
9926
10017
 
9927
10018
  滚动IC权重合成因子
9928
10019
 
9929
10020
  :param sequense(Indicator) inds: 原始因子列表
9930
10021
  :param sequense(stock) stks: 计算证券列表
9931
10022
  :param Query query: 日期范围
9932
- :param Stock ref_stk: (未指定时,默认为 sh000300 沪深300)
10023
+ :param Stock ref_stk: 用于日期对齐的参考证券 (未指定时,默认为 sh000001)
9933
10024
  :param int ic_n: 默认 IC 对应的 N 日收益率
9934
10025
  :param int ic_rolling_n: IC 滚动周期
9935
10026
  :param bool spearman: 默认使用 spearman 计算相关系数,否则为 pearson
@@ -9941,17 +10032,17 @@ def MF_ICWeight(inds: collections.abc.Sequence, stks: collections.abc.Sequence,
9941
10032
  def MF_Weight() -> MultiFactorBase:
9942
10033
  ...
9943
10034
  @typing.overload
9944
- def MF_Weight(inds: collections.abc.Sequence, stks: collections.abc.Sequence, weights: collections.abc.Sequence, query: Query, ref_stk: typing.Any = None, ic_n: typing.SupportsInt = 5, spearman: bool = True, mode: typing.SupportsInt = 0, save_all_factors: bool = False) -> MultiFactorBase:
10035
+ def MF_Weight(inds: collections.abc.Sequence, stks: typing.Any, weights: collections.abc.Sequence, query: Query, ref_stk: typing.Any = None, ic_n: typing.SupportsInt = 5, spearman: bool = True, mode: typing.SupportsInt = 0, save_all_factors: bool = False) -> MultiFactorBase:
9945
10036
  """
9946
- MF_EqualWeight(inds, stks, query, ref_stk[, ic_n=5])
10037
+ MF_Weight(inds, stks, weights, query, ref_stk[, ic_n=5, spearman=True, mode=0, save_all_factors=False])
9947
10038
 
9948
10039
  按指定权重合成因子 = ind1 * weight1 + ind2 * weight2 + ... + indn * weightn
9949
10040
 
9950
10041
  :param sequense(Indicator) inds: 原始因子列表
9951
- :param sequense(float) weights: 权重列表(需和 inds 等长)
9952
10042
  :param sequense(stock) stks: 计算证券列表
10043
+ :param sequense(float) weights: 权重列表(需和 inds 等长)
9953
10044
  :param Query query: 日期范围
9954
- :param Stock ref_stk: 参考证券 (未指定时,默认为 sh000300 沪深300)
10045
+ :param Stock ref_stk: 参考证券用于日期对齐 (未指定时,默认为 sh000001)
9955
10046
  :param int ic_n: 默认 IC 对应的 N 日收益率
9956
10047
  :param bool spearman: 默认使用 spearman 计算相关系数,否则为 pearson
9957
10048
  :param int mode: 获取截面数据时排序模式: 0-降序, 1-升序, 2-不排序
@@ -10203,7 +10294,7 @@ def NOT(arg0: Indicator) -> Indicator:
10203
10294
  :param Indicator data: 输入数据
10204
10295
  :rtype: Indicator
10205
10296
  """
10206
- def PF_Simple(tm: TradeManager = None, se: SelectorBase = ..., af: AllocateFundsBase = ..., adjust_cycle: typing.SupportsInt = 1, adjust_mode: str = 'query', delay_to_trading_day: bool = True) -> Portfolio:
10297
+ def PF_Simple(tm: typing.Any = None, se: typing.Any = ..., af: typing.Any = ..., adjust_cycle: typing.SupportsInt = 1, adjust_mode: str = 'query', delay_to_trading_day: bool = True) -> Portfolio:
10207
10298
  """
10208
10299
  PF_Simple([tm, se, af, adjust_cycle=1, adjust_mode="query", delay_to_trading_day=True])
10209
10300
 
@@ -10226,7 +10317,7 @@ def PF_Simple(tm: TradeManager = None, se: SelectorBase = ..., af: AllocateFunds
10226
10317
  :param str adjust_mode: 调仓模式
10227
10318
  :param bool delay_to_trading_day: 如果当日不是交易日将会被顺延至当前周期内的第一个交易日
10228
10319
  """
10229
- def PF_WithoutAF(tm: TradeManager = None, se: SelectorBase = ..., adjust_cycle: typing.SupportsInt = 1, adjust_mode: str = 'query', delay_to_trading_day: bool = True, trade_on_close: bool = True, sys_use_self_tm: bool = False, sell_at_not_selected: bool = False) -> Portfolio:
10320
+ def PF_WithoutAF(tm: typing.Any = None, se: typing.Any = ..., adjust_cycle: typing.SupportsInt = 1, adjust_mode: str = 'query', delay_to_trading_day: bool = True, trade_on_close: bool = True, sys_use_self_tm: bool = False, sell_at_not_selected: bool = False) -> Portfolio:
10230
10321
  """
10231
10322
  PF_WithoutAF([tm, se, adjust_cycle=1, adjust_mode="query", delay_to_trading_day=True, trade_on_close=True, sys_use_self_tm=False,sell_at_not_selected=False])
10232
10323
 
@@ -10344,7 +10435,7 @@ def QUANTILE_TRUNC(data: Indicator, n: typing.SupportsInt = 60, quantial_min: ty
10344
10435
  :rtype: Indicator
10345
10436
  """
10346
10437
  @typing.overload
10347
- def RANK(stks: collections.abc.Sequence, mode: typing.SupportsInt = 0, fill_null: bool = True, market: str = 'SH') -> Indicator:
10438
+ def RANK(stks: typing.Any, mode: typing.SupportsInt = 0, fill_null: bool = True, market: str = 'SH') -> Indicator:
10348
10439
  ...
10349
10440
  @typing.overload
10350
10441
  def RANK(stks: collections.abc.Sequence, ref_ind: Indicator, mode: typing.SupportsInt = 0, fill_null: bool = True, market: str = 'SH') -> Indicator:
@@ -10766,7 +10857,7 @@ def SE_EvaluateOptimal(arg0: typing.Any) -> SelectorBase:
10766
10857
  def SE_Fixed(weight: typing.SupportsFloat = 1.0) -> SelectorBase:
10767
10858
  ...
10768
10859
  @typing.overload
10769
- def SE_Fixed(stk_list: collections.abc.Sequence, sys: ..., weight: typing.SupportsFloat = 1.0) -> SelectorBase:
10860
+ def SE_Fixed(stk_list: typing.Any, sys: ..., weight: typing.SupportsFloat = 1.0) -> SelectorBase:
10770
10861
  """
10771
10862
  SE_Fixed([stk_list, sys])
10772
10863
 
@@ -10800,7 +10891,7 @@ def SE_MultiFactor(inds: collections.abc.Sequence, topn: typing.SupportsInt = 10
10800
10891
  :param int topn: 只选取时间截面中前 topn 个系统,小于等于0时代表不限制
10801
10892
  :param int ic_n: 默认 IC 对应的 N 日收益率
10802
10893
  :param int ic_rolling_n: IC 滚动周期
10803
- :param Stock ref_stk: 参考证券 (未指定时,默认为 sh000300 沪深300)
10894
+ :param Stock ref_stk: 参考证券,用于日期对齐,未指定时为 sh000001
10804
10895
  :param bool spearman: 默认使用 spearman 计算相关系数,否则为 pearson
10805
10896
  :param str mode: "MF_ICIRWeight" | "MF_ICWeight" | "MF_EqualWeight" 因子合成算法名称
10806
10897
  """
@@ -10821,7 +10912,7 @@ def SE_MultiFactor2(inds: collections.abc.Sequence, ic_n: typing.SupportsInt = 5
10821
10912
  :param sequense(Indicator) inds: 原始因子列表
10822
10913
  :param int ic_n: 默认 IC 对应的 N 日收益率
10823
10914
  :param int ic_rolling_n: IC 滚动周期
10824
- :param Stock ref_stk: 参考证券 (未指定时,默认为 sh000300 沪深300)
10915
+ :param Stock ref_stk: 参考证券,用于日期对齐,未指定时为 sh000001
10825
10916
  :param bool spearman: 默认使用 spearman 计算相关系数,否则为 pearson
10826
10917
  :param str mode: "MF_ICIRWeight" | "MF_ICWeight" | "MF_EqualWeight" 因子合成算法名称
10827
10918
  """
@@ -14031,6 +14122,10 @@ def bind_email(arg0: str, arg1: str) -> None:
14031
14122
  """
14032
14123
  def can_upgrade() -> bool:
14033
14124
  ...
14125
+ def check_data(stock_list: typing.Any, start_date: Datetime, end_date: Datetime, ktype: str) -> tuple:
14126
+ """
14127
+ 检查数据
14128
+ """
14034
14129
  def close_ostream_to_python() -> None:
14035
14130
  ...
14036
14131
  def close_spend_time() -> None:
@@ -14099,6 +14194,15 @@ def df_to_krecords(df: typing.Any, columns: collections.abc.Sequence[str] = ['da
14099
14194
  :param dict columns: 指定DataFrame的列名,对应KRecord的成员变量名称
14100
14195
  :return: 转换后的KRecordList
14101
14196
  """
14197
+ def enable_kdata_cache(enable: bool) -> None:
14198
+ """
14199
+ enable_kdata_cache(enable)
14200
+
14201
+ 启用或禁用K线数据缓存
14202
+
14203
+ :param bool enable: 是否启用K线数据缓存
14204
+ :return: None
14205
+ """
14102
14206
  def fetch_trial_license(arg0: str) -> str:
14103
14207
  """
14104
14208
  fetch_trial_license(email: str)
@@ -14191,7 +14295,7 @@ def get_kdata(market_code: str, start: Datetime = ..., end: Datetime = ..., ktyp
14191
14295
  :param Query.KType ktype: K 线类型, 'DAY'|'WEEK'|'MONTH'|'QUARTER'|'HALFYEAR'|'YEAR'|'MIN'|'MIN5'|'MIN15'|'MIN30'|'MIN60'
14192
14296
  :param Query.RecoverType recover_type: 复权类型
14193
14297
  """
14194
- def get_last_version() -> str:
14298
+ def get_latest_version_info() -> dict:
14195
14299
  ...
14196
14300
  def get_log_level() -> LOG_LEVEL:
14197
14301
  """