hikyuu 2.6.8.3__py3-none-win_amd64.whl → 2.6.8.4__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__.pyi +588 -588
- hikyuu/analysis/__init__.pyi +563 -563
- hikyuu/analysis/analysis.pyi +563 -563
- hikyuu/core.pyi +563 -563
- hikyuu/cpp/__init__.pyi +2 -2
- hikyuu/cpp/core310.pyd +0 -0
- hikyuu/cpp/core311.pyd +0 -0
- hikyuu/cpp/core312.pyd +0 -0
- hikyuu/cpp/core313.pyd +0 -0
- hikyuu/cpp/core39.pyd +0 -0
- hikyuu/cpp/hikyuu.dll +0 -0
- hikyuu/cpp/hikyuu.lib +0 -0
- hikyuu/cpp/i18n/zh_CN/hikyuu.mo +0 -0
- hikyuu/cpp/sqlite3.dll +0 -0
- hikyuu/draw/drawplot/__init__.pyi +8 -8
- hikyuu/draw/drawplot/bokeh_draw.pyi +579 -579
- hikyuu/draw/drawplot/common.pyi +1 -1
- hikyuu/draw/drawplot/echarts_draw.pyi +581 -581
- hikyuu/draw/drawplot/matplotlib_draw.pyi +591 -591
- hikyuu/draw/elder.pyi +11 -11
- hikyuu/draw/kaufman.pyi +18 -18
- hikyuu/draw/volume.pyi +10 -10
- hikyuu/extend.pyi +572 -572
- hikyuu/gui/importdata.py +4 -0
- hikyuu/hub.pyi +6 -6
- hikyuu/include/hikyuu/lang.h +15 -2
- hikyuu/include/hikyuu/python/pybind_utils.h +2 -2
- hikyuu/include/hikyuu/version.h +2 -2
- hikyuu/plugin/backtest.dll +0 -0
- hikyuu/plugin/clickhousedriver.dll +0 -0
- hikyuu/plugin/dataserver.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/trade_manage/__init__.pyi +578 -578
- hikyuu/trade_manage/broker.pyi +3 -3
- hikyuu/trade_manage/broker_easytrader.pyi +1 -1
- hikyuu/trade_manage/trade.pyi +578 -578
- hikyuu/util/__init__.pyi +2 -2
- hikyuu/util/singleton.pyi +1 -1
- {hikyuu-2.6.8.3.dist-info → hikyuu-2.6.8.4.dist-info}/METADATA +1 -1
- {hikyuu-2.6.8.3.dist-info → hikyuu-2.6.8.4.dist-info}/RECORD +46 -46
- {hikyuu-2.6.8.3.dist-info → hikyuu-2.6.8.4.dist-info}/WHEEL +0 -0
- {hikyuu-2.6.8.3.dist-info → hikyuu-2.6.8.4.dist-info}/entry_points.txt +0 -0
- {hikyuu-2.6.8.3.dist-info → hikyuu-2.6.8.4.dist-info}/top_level.txt +0 -0
hikyuu/gui/importdata.py
CHANGED
|
@@ -9,6 +9,7 @@ from configparser import ConfigParser
|
|
|
9
9
|
|
|
10
10
|
from hikyuu.data.weight_to_sqlite import qianlong_import_weight
|
|
11
11
|
from hikyuu.data.common_pytdx import search_best_tdx
|
|
12
|
+
from hikyuu.data.hku_config_template import generate_default_config
|
|
12
13
|
|
|
13
14
|
from hikyuu.gui.data.UseTdxImportToH5Thread import UseTdxImportToH5Thread
|
|
14
15
|
from hikyuu.gui.data.UsePytdxImportToH5Thread import UsePytdxImportToH5Thread
|
|
@@ -26,7 +27,10 @@ class HKUImportDataCMD:
|
|
|
26
27
|
# 读取保存的配置文件信息,如果不存在,则使用默认配置
|
|
27
28
|
this_dir = self.getUserConfigDir()
|
|
28
29
|
import_config = ConfigParser()
|
|
30
|
+
if not os.path.exists(this_dir + '/importdata-gui.ini'):
|
|
31
|
+
generate_default_config()
|
|
29
32
|
import_config.read(this_dir + '/importdata-gui.ini', encoding='utf-8')
|
|
33
|
+
|
|
30
34
|
if self.ignore_kdata:
|
|
31
35
|
import_config.set('ktype', 'day', 'False')
|
|
32
36
|
import_config.set('ktype', 'min', 'False')
|
hikyuu/hub.pyi
CHANGED
|
@@ -28,11 +28,11 @@ import sys as sys
|
|
|
28
28
|
import typing
|
|
29
29
|
__all__: list = ['add_remote_hub', 'add_local_hub', 'update_hub', 'remove_hub', 'build_hub', 'help_part', 'get_part', 'get_part_list', 'get_hub_path', 'get_part_info', 'get_part_module', 'print_part_info', 'get_hub_name_list', 'get_part_name_list', 'get_current_hub', 'search_part']
|
|
30
30
|
class ConfigModel(sqlalchemy.orm.decl_api.Base):
|
|
31
|
-
__mapper__: typing.ClassVar[sqlalchemy.orm.mapper.Mapper] # value = <Mapper at
|
|
31
|
+
__mapper__: typing.ClassVar[sqlalchemy.orm.mapper.Mapper] # value = <Mapper at 0x22e3840c9d0; ConfigModel>
|
|
32
32
|
__table__: typing.ClassVar[sqlalchemy.sql.schema.Table] # value = Table('hub_config', MetaData(), Column('id', Integer(), table=<hub_config>, primary_key=True, nullable=False, default=Sequence('config_id_seq', metadata=MetaData())), Column('key', String(), table=<hub_config>), Column('value', String(), table=<hub_config>), schema=None)
|
|
33
33
|
__table_args__: typing.ClassVar[tuple] # value = (UniqueConstraint(Column('key', String(), table=<hub_config>)))
|
|
34
34
|
__tablename__: typing.ClassVar[str] = 'hub_config'
|
|
35
|
-
_sa_class_manager: typing.ClassVar[sqlalchemy.orm.instrumentation.ClassManager] # value = <ClassManager of <class 'hikyuu.hub.ConfigModel'> at
|
|
35
|
+
_sa_class_manager: typing.ClassVar[sqlalchemy.orm.instrumentation.ClassManager] # value = <ClassManager of <class 'hikyuu.hub.ConfigModel'> at 22e3841f540>
|
|
36
36
|
def __init__(self, **kwargs):
|
|
37
37
|
"""
|
|
38
38
|
A simple constructor that allows initialization from kwargs.
|
|
@@ -109,11 +109,11 @@ class HubManager:
|
|
|
109
109
|
def print_part_info(self, name):
|
|
110
110
|
...
|
|
111
111
|
class HubModel(sqlalchemy.orm.decl_api.Base):
|
|
112
|
-
__mapper__: typing.ClassVar[sqlalchemy.orm.mapper.Mapper] # value = <Mapper at
|
|
112
|
+
__mapper__: typing.ClassVar[sqlalchemy.orm.mapper.Mapper] # value = <Mapper at 0x22e3844d100; HubModel>
|
|
113
113
|
__table__: typing.ClassVar[sqlalchemy.sql.schema.Table] # value = Table('hub_repo', MetaData(), Column('id', Integer(), table=<hub_repo>, primary_key=True, nullable=False, default=Sequence('remote_id_seq', metadata=MetaData())), Column('name', String(), table=<hub_repo>), Column('hub_type', String(), table=<hub_repo>), Column('local_base', String(), table=<hub_repo>), Column('local', String(), table=<hub_repo>), Column('url', String(), table=<hub_repo>), Column('branch', String(), table=<hub_repo>), schema=None)
|
|
114
114
|
__table_args__: typing.ClassVar[tuple] # value = (UniqueConstraint(Column('name', String(), table=<hub_repo>)))
|
|
115
115
|
__tablename__: typing.ClassVar[str] = 'hub_repo'
|
|
116
|
-
_sa_class_manager: typing.ClassVar[sqlalchemy.orm.instrumentation.ClassManager] # value = <ClassManager of <class 'hikyuu.hub.HubModel'> at
|
|
116
|
+
_sa_class_manager: typing.ClassVar[sqlalchemy.orm.instrumentation.ClassManager] # value = <ClassManager of <class 'hikyuu.hub.HubModel'> at 22e38442310>
|
|
117
117
|
def __init__(self, **kwargs):
|
|
118
118
|
"""
|
|
119
119
|
A simple constructor that allows initialization from kwargs.
|
|
@@ -146,11 +146,11 @@ class ModuleConflictError(Exception):
|
|
|
146
146
|
def __str__(self):
|
|
147
147
|
...
|
|
148
148
|
class PartModel(sqlalchemy.orm.decl_api.Base):
|
|
149
|
-
__mapper__: typing.ClassVar[sqlalchemy.orm.mapper.Mapper] # value = <Mapper at
|
|
149
|
+
__mapper__: typing.ClassVar[sqlalchemy.orm.mapper.Mapper] # value = <Mapper at 0x22e3844d8e0; PartModel>
|
|
150
150
|
__table__: typing.ClassVar[sqlalchemy.sql.schema.Table] # value = Table('hub_part', MetaData(), Column('id', Integer(), table=<hub_part>, primary_key=True, nullable=False, default=Sequence('part_id_seq', metadata=MetaData())), Column('hub_name', String(), table=<hub_part>), Column('part', String(), table=<hub_part>), Column('name', String(), table=<hub_part>), Column('author', String(), table=<hub_part>), Column('version', String(), table=<hub_part>), Column('doc', String(), table=<hub_part>), Column('module_name', String(), table=<hub_part>), Column('label', String(), table=<hub_part>), schema=None)
|
|
151
151
|
__table_args__: typing.ClassVar[tuple] # value = (UniqueConstraint(Column('name', String(), table=<hub_part>)))
|
|
152
152
|
__tablename__: typing.ClassVar[str] = 'hub_part'
|
|
153
|
-
_sa_class_manager: typing.ClassVar[sqlalchemy.orm.instrumentation.ClassManager] # value = <ClassManager of <class 'hikyuu.hub.PartModel'> at
|
|
153
|
+
_sa_class_manager: typing.ClassVar[sqlalchemy.orm.instrumentation.ClassManager] # value = <ClassManager of <class 'hikyuu.hub.PartModel'> at 22e38442d60>
|
|
154
154
|
def __init__(self, **kwargs):
|
|
155
155
|
"""
|
|
156
156
|
A simple constructor that allows initialization from kwargs.
|
hikyuu/include/hikyuu/lang.h
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
10
|
#include <string>
|
|
11
|
+
#include "hikyuu/utilities/cppdef.h"
|
|
11
12
|
|
|
12
13
|
#ifndef HKU_API
|
|
13
14
|
#define HKU_API
|
|
@@ -19,9 +20,21 @@ namespace hku {
|
|
|
19
20
|
|
|
20
21
|
void loadLocalLanguage(const std::string &path = "i8n");
|
|
21
22
|
|
|
22
|
-
std::string HKU_API
|
|
23
|
+
std::string HKU_API lang_htr(const char *id);
|
|
23
24
|
|
|
24
25
|
// 按上下文获取翻译
|
|
25
|
-
std::string HKU_API
|
|
26
|
+
std::string HKU_API lang_hctr(const char *ctx, const char *id);
|
|
27
|
+
|
|
28
|
+
template <typename... Args>
|
|
29
|
+
std::string htr(const char *key, Args &&...args) {
|
|
30
|
+
std::string fmt_str = lang_htr(key);
|
|
31
|
+
return fmt::vformat(fmt_str, fmt::make_format_args(std::forward<Args>(args)...));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
template <typename... Args>
|
|
35
|
+
std::string chtr(const char *ctx, const char *key, Args &&...args) {
|
|
36
|
+
std::string fmt_str = lang_hctr(ctx, key);
|
|
37
|
+
return fmt::vformat(fmt_str, fmt::make_format_args(std::forward<Args>(args)...));
|
|
38
|
+
}
|
|
26
39
|
|
|
27
40
|
} // namespace hku
|
|
@@ -107,8 +107,8 @@ protected:
|
|
|
107
107
|
return true; \
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
//
|
|
111
|
-
inline bool check_pyfunction_arg_num(py::object& func, size_t arg_num) {
|
|
110
|
+
// 用于检查以 py::object 方式传递的函数参数个数是否符合预期
|
|
111
|
+
inline bool check_pyfunction_arg_num(const py::object& func, size_t arg_num) {
|
|
112
112
|
py::module_ inspect = py::module_::import("inspect");
|
|
113
113
|
py::object sig = inspect.attr("signature")(func);
|
|
114
114
|
py::object params = sig.attr("parameters");
|
hikyuu/include/hikyuu/version.h
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
#define HKU_VERSION_MAJOR 2
|
|
17
17
|
#define HKU_VERSION_MINOR 6
|
|
18
18
|
#define HKU_VERSION_ALTER 8
|
|
19
|
-
#define HKU_VERSION_BUILD
|
|
19
|
+
#define HKU_VERSION_BUILD 202509100054
|
|
20
20
|
#define HKU_VERSION_MODE "RELEASE"
|
|
21
|
-
#define HKU_VERSION_GIT "2.6.8 master.
|
|
21
|
+
#define HKU_VERSION_GIT "2.6.8 master.4088326f (RELEASE)"
|
|
22
22
|
// clang-format on
|
|
23
23
|
|
|
24
24
|
#endif /* HKU_VERSION_H */
|
hikyuu/plugin/backtest.dll
CHANGED
|
Binary file
|
|
Binary file
|
hikyuu/plugin/dataserver.dll
CHANGED
|
Binary file
|
hikyuu/plugin/extind.dll
CHANGED
|
Binary file
|
hikyuu/plugin/hkuextra.dll
CHANGED
|
Binary file
|
hikyuu/plugin/import2hdf5.dll
CHANGED
|
Binary file
|
hikyuu/plugin/tmreport.dll
CHANGED
|
Binary file
|