lixinger-python 0.3.14__py3-none-any.whl → 0.3.15__py3-none-any.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.
- lixinger/__init__.py +11 -0
- lixinger/api/cn/industry/__init__.py +22 -0
- lixinger/api/cn/industry/fs/__init__.py +35 -0
- lixinger/api/cn/industry/fs/sw_2021/__init__.py +47 -0
- lixinger/api/cn/industry/fs/sw_2021/bank.py +133 -0
- lixinger/api/cn/industry/fs/sw_2021/hybrid.py +133 -0
- lixinger/api/cn/industry/fs/sw_2021/insurance.py +134 -0
- lixinger/api/cn/industry/fs/sw_2021/non_financial.py +133 -0
- lixinger/api/cn/industry/fs/sw_2021/security.py +134 -0
- lixinger/api/cn/industry/namespace.py +111 -1
- lixinger/client.py +28 -0
- lixinger/models/cn/industry/__init__.py +12 -0
- lixinger/models/cn/industry/fs/__init__.py +17 -0
- lixinger/models/cn/industry/fs/sw_2021/__init__.py +15 -0
- lixinger/models/cn/industry/fs/sw_2021/bank.py +20 -0
- lixinger/models/cn/industry/fs/sw_2021/hybrid.py +20 -0
- lixinger/models/cn/industry/fs/sw_2021/insurance.py +20 -0
- lixinger/models/cn/industry/fs/sw_2021/non_financial.py +20 -0
- lixinger/models/cn/industry/fs/sw_2021/security.py +20 -0
- {lixinger_python-0.3.14.dist-info → lixinger_python-0.3.15.dist-info}/METADATA +1 -1
- {lixinger_python-0.3.14.dist-info → lixinger_python-0.3.15.dist-info}/RECORD +23 -9
- {lixinger_python-0.3.14.dist-info → lixinger_python-0.3.15.dist-info}/WHEEL +0 -0
- {lixinger_python-0.3.14.dist-info → lixinger_python-0.3.15.dist-info}/licenses/LICENSE +0 -0
lixinger/__init__.py
CHANGED
|
@@ -44,7 +44,12 @@ from lixinger.api.cn.index import (
|
|
|
44
44
|
)
|
|
45
45
|
from lixinger.api.cn.industry import (
|
|
46
46
|
get_industry_cni_margin_trading,
|
|
47
|
+
get_industry_sw_2021_bank_statements,
|
|
48
|
+
get_industry_sw_2021_hybrid_statements,
|
|
49
|
+
get_industry_sw_2021_insurance_statements,
|
|
47
50
|
get_industry_sw_2021_margin_trading,
|
|
51
|
+
get_industry_sw_2021_non_financial_statements,
|
|
52
|
+
get_industry_sw_2021_security_statements,
|
|
48
53
|
get_industry_sw_margin_trading,
|
|
49
54
|
)
|
|
50
55
|
from lixinger.api.macro import (
|
|
@@ -110,6 +115,12 @@ __all__ = [
|
|
|
110
115
|
"get_industry_sw_margin_trading",
|
|
111
116
|
"get_industry_sw_2021_margin_trading",
|
|
112
117
|
"get_industry_cni_margin_trading",
|
|
118
|
+
# Industry financial statements (申万2021版)
|
|
119
|
+
"get_industry_sw_2021_bank_statements",
|
|
120
|
+
"get_industry_sw_2021_hybrid_statements",
|
|
121
|
+
"get_industry_sw_2021_insurance_statements",
|
|
122
|
+
"get_industry_sw_2021_non_financial_statements",
|
|
123
|
+
"get_industry_sw_2021_security_statements",
|
|
113
124
|
# Macro
|
|
114
125
|
"get_national_debt",
|
|
115
126
|
"get_rmb_deposits",
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
"""Industry-related APIs."""
|
|
2
2
|
|
|
3
|
+
from lixinger.api.cn.industry.fs import (
|
|
4
|
+
IndustrySw2021BankStatementAPI,
|
|
5
|
+
IndustrySw2021HybridStatementAPI,
|
|
6
|
+
IndustrySw2021InsuranceStatementAPI,
|
|
7
|
+
IndustrySw2021NonFinancialStatementAPI,
|
|
8
|
+
IndustrySw2021SecurityStatementAPI,
|
|
9
|
+
get_industry_sw_2021_bank_statements,
|
|
10
|
+
get_industry_sw_2021_hybrid_statements,
|
|
11
|
+
get_industry_sw_2021_insurance_statements,
|
|
12
|
+
get_industry_sw_2021_non_financial_statements,
|
|
13
|
+
get_industry_sw_2021_security_statements,
|
|
14
|
+
)
|
|
3
15
|
from lixinger.api.cn.industry.margin_trading import (
|
|
4
16
|
IndustryCniMarginTradingAPI,
|
|
5
17
|
IndustrySw2021MarginTradingAPI,
|
|
@@ -12,10 +24,20 @@ from lixinger.api.cn.industry.margin_trading import (
|
|
|
12
24
|
__all__ = [
|
|
13
25
|
# API Classes
|
|
14
26
|
"IndustryCniMarginTradingAPI",
|
|
27
|
+
"IndustrySw2021BankStatementAPI",
|
|
28
|
+
"IndustrySw2021HybridStatementAPI",
|
|
29
|
+
"IndustrySw2021InsuranceStatementAPI",
|
|
15
30
|
"IndustrySw2021MarginTradingAPI",
|
|
31
|
+
"IndustrySw2021NonFinancialStatementAPI",
|
|
32
|
+
"IndustrySw2021SecurityStatementAPI",
|
|
16
33
|
"IndustrySwMarginTradingAPI",
|
|
17
34
|
# Functional APIs
|
|
18
35
|
"get_industry_cni_margin_trading",
|
|
36
|
+
"get_industry_sw_2021_bank_statements",
|
|
37
|
+
"get_industry_sw_2021_hybrid_statements",
|
|
38
|
+
"get_industry_sw_2021_insurance_statements",
|
|
19
39
|
"get_industry_sw_2021_margin_trading",
|
|
40
|
+
"get_industry_sw_2021_non_financial_statements",
|
|
41
|
+
"get_industry_sw_2021_security_statements",
|
|
20
42
|
"get_industry_sw_margin_trading",
|
|
21
43
|
]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Industry financial statement APIs.
|
|
2
|
+
|
|
3
|
+
This module provides access to industry financial statement APIs by
|
|
4
|
+
industry classification system:
|
|
5
|
+
|
|
6
|
+
- sw_2021: 申万2021版行业财报数据
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from lixinger.api.cn.industry.fs.sw_2021 import (
|
|
10
|
+
IndustrySw2021BankStatementAPI,
|
|
11
|
+
IndustrySw2021HybridStatementAPI,
|
|
12
|
+
IndustrySw2021InsuranceStatementAPI,
|
|
13
|
+
IndustrySw2021NonFinancialStatementAPI,
|
|
14
|
+
IndustrySw2021SecurityStatementAPI,
|
|
15
|
+
get_industry_sw_2021_bank_statements,
|
|
16
|
+
get_industry_sw_2021_hybrid_statements,
|
|
17
|
+
get_industry_sw_2021_insurance_statements,
|
|
18
|
+
get_industry_sw_2021_non_financial_statements,
|
|
19
|
+
get_industry_sw_2021_security_statements,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
# API Classes
|
|
24
|
+
"IndustrySw2021BankStatementAPI",
|
|
25
|
+
"IndustrySw2021HybridStatementAPI",
|
|
26
|
+
"IndustrySw2021InsuranceStatementAPI",
|
|
27
|
+
"IndustrySw2021NonFinancialStatementAPI",
|
|
28
|
+
"IndustrySw2021SecurityStatementAPI",
|
|
29
|
+
# Functional APIs
|
|
30
|
+
"get_industry_sw_2021_bank_statements",
|
|
31
|
+
"get_industry_sw_2021_hybrid_statements",
|
|
32
|
+
"get_industry_sw_2021_insurance_statements",
|
|
33
|
+
"get_industry_sw_2021_non_financial_statements",
|
|
34
|
+
"get_industry_sw_2021_security_statements",
|
|
35
|
+
]
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""申万2021版行业财报数据 API.
|
|
2
|
+
|
|
3
|
+
This module provides access to industry financial statement APIs for the
|
|
4
|
+
Shenwan 2021 classification, grouped by industry sample type:
|
|
5
|
+
|
|
6
|
+
- bank: 银行类行业财报
|
|
7
|
+
- hybrid: 混合型行业财报(同时包含金融和非金融公司)
|
|
8
|
+
- insurance: 保险类行业财报
|
|
9
|
+
- non_financial: 非金融类行业财报
|
|
10
|
+
- security: 证券类行业财报
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from lixinger.api.cn.industry.fs.sw_2021.bank import (
|
|
14
|
+
IndustrySw2021BankStatementAPI,
|
|
15
|
+
get_industry_sw_2021_bank_statements,
|
|
16
|
+
)
|
|
17
|
+
from lixinger.api.cn.industry.fs.sw_2021.hybrid import (
|
|
18
|
+
IndustrySw2021HybridStatementAPI,
|
|
19
|
+
get_industry_sw_2021_hybrid_statements,
|
|
20
|
+
)
|
|
21
|
+
from lixinger.api.cn.industry.fs.sw_2021.insurance import (
|
|
22
|
+
IndustrySw2021InsuranceStatementAPI,
|
|
23
|
+
get_industry_sw_2021_insurance_statements,
|
|
24
|
+
)
|
|
25
|
+
from lixinger.api.cn.industry.fs.sw_2021.non_financial import (
|
|
26
|
+
IndustrySw2021NonFinancialStatementAPI,
|
|
27
|
+
get_industry_sw_2021_non_financial_statements,
|
|
28
|
+
)
|
|
29
|
+
from lixinger.api.cn.industry.fs.sw_2021.security import (
|
|
30
|
+
IndustrySw2021SecurityStatementAPI,
|
|
31
|
+
get_industry_sw_2021_security_statements,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
__all__ = [
|
|
35
|
+
# API Classes
|
|
36
|
+
"IndustrySw2021BankStatementAPI",
|
|
37
|
+
"IndustrySw2021HybridStatementAPI",
|
|
38
|
+
"IndustrySw2021InsuranceStatementAPI",
|
|
39
|
+
"IndustrySw2021NonFinancialStatementAPI",
|
|
40
|
+
"IndustrySw2021SecurityStatementAPI",
|
|
41
|
+
# Functional APIs
|
|
42
|
+
"get_industry_sw_2021_bank_statements",
|
|
43
|
+
"get_industry_sw_2021_hybrid_statements",
|
|
44
|
+
"get_industry_sw_2021_insurance_statements",
|
|
45
|
+
"get_industry_sw_2021_non_financial_statements",
|
|
46
|
+
"get_industry_sw_2021_security_statements",
|
|
47
|
+
]
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"""申万2021版行业 - 银行类财报数据 API."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
import pandas as pd
|
|
6
|
+
|
|
7
|
+
from lixinger.api.base import BaseAPI
|
|
8
|
+
from lixinger.models.cn.industry.fs.sw_2021.bank import IndustrySw2021BankStatementSchema
|
|
9
|
+
from lixinger.utils.api import api
|
|
10
|
+
from lixinger.utils.dataframe import get_response_df
|
|
11
|
+
from lixinger.utils.dict import flatten_dict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class IndustrySw2021BankStatementAPI(BaseAPI):
|
|
15
|
+
"""申万2021版银行类行业财报数据 API."""
|
|
16
|
+
|
|
17
|
+
async def get_bank_statements( # noqa: PLR0913
|
|
18
|
+
self,
|
|
19
|
+
stock_codes: list[str],
|
|
20
|
+
metrics: list[str],
|
|
21
|
+
date: str | None = None,
|
|
22
|
+
start_date: str | None = None,
|
|
23
|
+
end_date: str | None = None,
|
|
24
|
+
limit: int | None = None,
|
|
25
|
+
) -> pd.DataFrame:
|
|
26
|
+
"""获取申万2021版银行类行业的财报数据.
|
|
27
|
+
|
|
28
|
+
API Endpoint: /cn/industry/fs/sw_2021/bank
|
|
29
|
+
API Method: POST
|
|
30
|
+
API Doc: https://www.lixinger.com/open/api/doc?api-key=cn/industry/fs/sw_2021/bank
|
|
31
|
+
|
|
32
|
+
获取申万2021年版银行类大陆行业(样本仅包含银行)的财务数据,包括利润表、
|
|
33
|
+
资产负债表、现金流量表、财务指标。注意该行业划分多从2021年开始,
|
|
34
|
+
更早的时间可能没有数据。
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
stock_codes: 行业代码列表,长度 >=1 且 <=100。当传入 start_date
|
|
38
|
+
时只能传入一个行业代码。
|
|
39
|
+
metrics: 指标列表,格式为
|
|
40
|
+
``[granularity].[tableName].[fieldName].[expressionCalculateType]``,
|
|
41
|
+
例如 ``"q.ps.oi.t"``。当 stock_codes 长度大于 1 时最多 48 个
|
|
42
|
+
指标;等于 1 时最多 128 个指标。
|
|
43
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。支持 ``"latest"``。
|
|
44
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。开始和结束的时间
|
|
45
|
+
间隔不超过 10 年。
|
|
46
|
+
end_date: 结束日期 (YYYY-MM-DD),可选,默认上周一。
|
|
47
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
48
|
+
|
|
49
|
+
Returns:
|
|
50
|
+
包含申万2021版银行类行业财报数据的 DataFrame。
|
|
51
|
+
|
|
52
|
+
Example:
|
|
53
|
+
获取申万2021版银行行业的营业收入::
|
|
54
|
+
|
|
55
|
+
from lixinger import AsyncLixingerClient
|
|
56
|
+
|
|
57
|
+
async with AsyncLixingerClient() as client:
|
|
58
|
+
df = await client.industry.fs.sw_2021.bank.get_bank_statements(
|
|
59
|
+
stock_codes=["480000"],
|
|
60
|
+
metrics=["q.ps.oi.t"],
|
|
61
|
+
date="2026-03-31",
|
|
62
|
+
)
|
|
63
|
+
print(df)
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
payload: dict[str, Any] = {
|
|
67
|
+
"stockCodes": stock_codes,
|
|
68
|
+
"metricsList": metrics,
|
|
69
|
+
}
|
|
70
|
+
if date is not None:
|
|
71
|
+
payload["date"] = date
|
|
72
|
+
if start_date is not None:
|
|
73
|
+
payload["startDate"] = start_date
|
|
74
|
+
if end_date is not None:
|
|
75
|
+
payload["endDate"] = end_date
|
|
76
|
+
if limit is not None:
|
|
77
|
+
payload["limit"] = limit
|
|
78
|
+
|
|
79
|
+
data = await self._request("POST", "/cn/industry/fs/sw_2021/bank", json=payload)
|
|
80
|
+
|
|
81
|
+
# Flatten nested metrics (e.g. {"q": {"ps": {"oi": {"t": ...}}}})
|
|
82
|
+
flattened_data = [flatten_dict(item) for item in data]
|
|
83
|
+
|
|
84
|
+
return get_response_df(flattened_data, IndustrySw2021BankStatementSchema)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
# Functional API instance
|
|
88
|
+
_api_instance = IndustrySw2021BankStatementAPI()
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@api
|
|
92
|
+
async def get_industry_sw_2021_bank_statements( # noqa: PLR0913
|
|
93
|
+
stock_codes: list[str],
|
|
94
|
+
metrics: list[str],
|
|
95
|
+
date: str | None = None,
|
|
96
|
+
start_date: str | None = None,
|
|
97
|
+
end_date: str | None = None,
|
|
98
|
+
limit: int | None = None,
|
|
99
|
+
) -> pd.DataFrame:
|
|
100
|
+
"""获取申万2021版银行类行业的财报数据.
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
stock_codes: 行业代码列表。
|
|
104
|
+
metrics: 指标列表。
|
|
105
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。
|
|
106
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。
|
|
107
|
+
end_date: 结束日期 (YYYY-MM-DD),可选。
|
|
108
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
包含申万2021版银行类行业财报数据的 DataFrame。
|
|
112
|
+
|
|
113
|
+
Example:
|
|
114
|
+
获取申万2021版银行行业的营业收入::
|
|
115
|
+
|
|
116
|
+
from lixinger import get_industry_sw_2021_bank_statements
|
|
117
|
+
|
|
118
|
+
df = await get_industry_sw_2021_bank_statements(
|
|
119
|
+
stock_codes=["480000"],
|
|
120
|
+
metrics=["q.ps.oi.t"],
|
|
121
|
+
date="2026-03-31",
|
|
122
|
+
)
|
|
123
|
+
print(df)
|
|
124
|
+
|
|
125
|
+
"""
|
|
126
|
+
return await _api_instance.get_bank_statements(
|
|
127
|
+
stock_codes=stock_codes,
|
|
128
|
+
metrics=metrics,
|
|
129
|
+
date=date,
|
|
130
|
+
start_date=start_date,
|
|
131
|
+
end_date=end_date,
|
|
132
|
+
limit=limit,
|
|
133
|
+
)
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"""申万2021版行业 - 混合型财报数据 API."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
import pandas as pd
|
|
6
|
+
|
|
7
|
+
from lixinger.api.base import BaseAPI
|
|
8
|
+
from lixinger.models.cn.industry.fs.sw_2021.hybrid import IndustrySw2021HybridStatementSchema
|
|
9
|
+
from lixinger.utils.api import api
|
|
10
|
+
from lixinger.utils.dataframe import get_response_df
|
|
11
|
+
from lixinger.utils.dict import flatten_dict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class IndustrySw2021HybridStatementAPI(BaseAPI):
|
|
15
|
+
"""申万2021版混合型行业财报数据 API."""
|
|
16
|
+
|
|
17
|
+
async def get_hybrid_statements( # noqa: PLR0913
|
|
18
|
+
self,
|
|
19
|
+
stock_codes: list[str],
|
|
20
|
+
metrics: list[str],
|
|
21
|
+
date: str | None = None,
|
|
22
|
+
start_date: str | None = None,
|
|
23
|
+
end_date: str | None = None,
|
|
24
|
+
limit: int | None = None,
|
|
25
|
+
) -> pd.DataFrame:
|
|
26
|
+
"""获取申万2021版混合型行业的财报数据.
|
|
27
|
+
|
|
28
|
+
API Endpoint: /cn/industry/fs/sw_2021/hybrid
|
|
29
|
+
API Method: POST
|
|
30
|
+
API Doc: https://www.lixinger.com/open/api/doc?api-key=cn/industry/fs/sw_2021/hybrid
|
|
31
|
+
|
|
32
|
+
获取申万2021年版混合型行业(样本同时包含金融公司和非金融公司)的财务数据,
|
|
33
|
+
包括利润表、资产负债表、现金流量表、财务指标。注意该行业划分多从2021年
|
|
34
|
+
开始,更早的时间可能没有数据。
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
stock_codes: 行业代码列表,长度 >=1 且 <=100。当传入 start_date
|
|
38
|
+
时只能传入一个行业代码。
|
|
39
|
+
metrics: 指标列表,格式为
|
|
40
|
+
``[granularity].[tableName].[fieldName].[expressionCalculateType]``,
|
|
41
|
+
例如 ``"q.ps.toi.t"``。当 stock_codes 长度大于 1 时最多 48 个
|
|
42
|
+
指标;等于 1 时最多 128 个指标。
|
|
43
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。支持 ``"latest"``。
|
|
44
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。开始和结束的时间
|
|
45
|
+
间隔不超过 10 年。
|
|
46
|
+
end_date: 结束日期 (YYYY-MM-DD),可选,默认上周一。
|
|
47
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
48
|
+
|
|
49
|
+
Returns:
|
|
50
|
+
包含申万2021版混合型行业财报数据的 DataFrame。
|
|
51
|
+
|
|
52
|
+
Example:
|
|
53
|
+
获取申万2021版非银金融行业的营业总收入::
|
|
54
|
+
|
|
55
|
+
from lixinger import AsyncLixingerClient
|
|
56
|
+
|
|
57
|
+
async with AsyncLixingerClient() as client:
|
|
58
|
+
df = await client.industry.fs.sw_2021.hybrid.get_hybrid_statements(
|
|
59
|
+
stock_codes=["490000"],
|
|
60
|
+
metrics=["q.ps.toi.t"],
|
|
61
|
+
date="2026-03-31",
|
|
62
|
+
)
|
|
63
|
+
print(df)
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
payload: dict[str, Any] = {
|
|
67
|
+
"stockCodes": stock_codes,
|
|
68
|
+
"metricsList": metrics,
|
|
69
|
+
}
|
|
70
|
+
if date is not None:
|
|
71
|
+
payload["date"] = date
|
|
72
|
+
if start_date is not None:
|
|
73
|
+
payload["startDate"] = start_date
|
|
74
|
+
if end_date is not None:
|
|
75
|
+
payload["endDate"] = end_date
|
|
76
|
+
if limit is not None:
|
|
77
|
+
payload["limit"] = limit
|
|
78
|
+
|
|
79
|
+
data = await self._request("POST", "/cn/industry/fs/sw_2021/hybrid", json=payload)
|
|
80
|
+
|
|
81
|
+
# Flatten nested metrics (e.g. {"q": {"ps": {"toi": {"t": ...}}}})
|
|
82
|
+
flattened_data = [flatten_dict(item) for item in data]
|
|
83
|
+
|
|
84
|
+
return get_response_df(flattened_data, IndustrySw2021HybridStatementSchema)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
# Functional API instance
|
|
88
|
+
_api_instance = IndustrySw2021HybridStatementAPI()
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@api
|
|
92
|
+
async def get_industry_sw_2021_hybrid_statements( # noqa: PLR0913
|
|
93
|
+
stock_codes: list[str],
|
|
94
|
+
metrics: list[str],
|
|
95
|
+
date: str | None = None,
|
|
96
|
+
start_date: str | None = None,
|
|
97
|
+
end_date: str | None = None,
|
|
98
|
+
limit: int | None = None,
|
|
99
|
+
) -> pd.DataFrame:
|
|
100
|
+
"""获取申万2021版混合型行业的财报数据.
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
stock_codes: 行业代码列表。
|
|
104
|
+
metrics: 指标列表。
|
|
105
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。
|
|
106
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。
|
|
107
|
+
end_date: 结束日期 (YYYY-MM-DD),可选。
|
|
108
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
包含申万2021版混合型行业财报数据的 DataFrame。
|
|
112
|
+
|
|
113
|
+
Example:
|
|
114
|
+
获取申万2021版非银金融行业的营业总收入::
|
|
115
|
+
|
|
116
|
+
from lixinger import get_industry_sw_2021_hybrid_statements
|
|
117
|
+
|
|
118
|
+
df = await get_industry_sw_2021_hybrid_statements(
|
|
119
|
+
stock_codes=["490000"],
|
|
120
|
+
metrics=["q.ps.toi.t"],
|
|
121
|
+
date="2026-03-31",
|
|
122
|
+
)
|
|
123
|
+
print(df)
|
|
124
|
+
|
|
125
|
+
"""
|
|
126
|
+
return await _api_instance.get_hybrid_statements(
|
|
127
|
+
stock_codes=stock_codes,
|
|
128
|
+
metrics=metrics,
|
|
129
|
+
date=date,
|
|
130
|
+
start_date=start_date,
|
|
131
|
+
end_date=end_date,
|
|
132
|
+
limit=limit,
|
|
133
|
+
)
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"""申万2021版行业 - 保险类财报数据 API."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
import pandas as pd
|
|
6
|
+
|
|
7
|
+
from lixinger.api.base import BaseAPI
|
|
8
|
+
from lixinger.models.cn.industry.fs.sw_2021.insurance import IndustrySw2021InsuranceStatementSchema
|
|
9
|
+
from lixinger.utils.api import api
|
|
10
|
+
from lixinger.utils.dataframe import get_response_df
|
|
11
|
+
from lixinger.utils.dict import flatten_dict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class IndustrySw2021InsuranceStatementAPI(BaseAPI):
|
|
15
|
+
"""申万2021版保险类行业财报数据 API."""
|
|
16
|
+
|
|
17
|
+
async def get_insurance_statements( # noqa: PLR0913
|
|
18
|
+
self,
|
|
19
|
+
stock_codes: list[str],
|
|
20
|
+
metrics: list[str],
|
|
21
|
+
date: str | None = None,
|
|
22
|
+
start_date: str | None = None,
|
|
23
|
+
end_date: str | None = None,
|
|
24
|
+
limit: int | None = None,
|
|
25
|
+
) -> pd.DataFrame:
|
|
26
|
+
"""获取申万2021版保险类行业的财报数据.
|
|
27
|
+
|
|
28
|
+
API Endpoint: /cn/industry/fs/sw_2021/insurance
|
|
29
|
+
API Method: POST
|
|
30
|
+
API Doc: https://www.lixinger.com/open/api/doc?api-key=cn/industry/fs/sw_2021/insurance
|
|
31
|
+
|
|
32
|
+
获取申万2021年版保险类行业(样本仅包含保险公司)的财务数据,包括利润表、
|
|
33
|
+
资产负债表、现金流量表、财务指标(含内含价值、寿险及健康险业务内含价值、
|
|
34
|
+
新业务价值等保险行业特有指标)。注意该行业划分多从2021年开始,
|
|
35
|
+
更早的时间可能没有数据。
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
stock_codes: 行业代码列表,长度 >=1 且 <=100。当传入 start_date
|
|
39
|
+
时只能传入一个行业代码。
|
|
40
|
+
metrics: 指标列表,格式为
|
|
41
|
+
``[granularity].[tableName].[fieldName].[expressionCalculateType]``,
|
|
42
|
+
例如 ``"q.ps.oi.t"``。当 stock_codes 长度大于 1 时最多 48 个
|
|
43
|
+
指标;等于 1 时最多 128 个指标。
|
|
44
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。支持 ``"latest"``。
|
|
45
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。开始和结束的时间
|
|
46
|
+
间隔不超过 10 年。
|
|
47
|
+
end_date: 结束日期 (YYYY-MM-DD),可选,默认上周一。
|
|
48
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
49
|
+
|
|
50
|
+
Returns:
|
|
51
|
+
包含申万2021版保险类行业财报数据的 DataFrame。
|
|
52
|
+
|
|
53
|
+
Example:
|
|
54
|
+
获取申万2021版保险行业的营业收入::
|
|
55
|
+
|
|
56
|
+
from lixinger import AsyncLixingerClient
|
|
57
|
+
|
|
58
|
+
async with AsyncLixingerClient() as client:
|
|
59
|
+
df = await client.industry.fs.sw_2021.insurance.get_insurance_statements(
|
|
60
|
+
stock_codes=["490200"],
|
|
61
|
+
metrics=["q.ps.oi.t"],
|
|
62
|
+
date="2026-03-31",
|
|
63
|
+
)
|
|
64
|
+
print(df)
|
|
65
|
+
|
|
66
|
+
"""
|
|
67
|
+
payload: dict[str, Any] = {
|
|
68
|
+
"stockCodes": stock_codes,
|
|
69
|
+
"metricsList": metrics,
|
|
70
|
+
}
|
|
71
|
+
if date is not None:
|
|
72
|
+
payload["date"] = date
|
|
73
|
+
if start_date is not None:
|
|
74
|
+
payload["startDate"] = start_date
|
|
75
|
+
if end_date is not None:
|
|
76
|
+
payload["endDate"] = end_date
|
|
77
|
+
if limit is not None:
|
|
78
|
+
payload["limit"] = limit
|
|
79
|
+
|
|
80
|
+
data = await self._request("POST", "/cn/industry/fs/sw_2021/insurance", json=payload)
|
|
81
|
+
|
|
82
|
+
# Flatten nested metrics
|
|
83
|
+
flattened_data = [flatten_dict(item) for item in data]
|
|
84
|
+
|
|
85
|
+
return get_response_df(flattened_data, IndustrySw2021InsuranceStatementSchema)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
# Functional API instance
|
|
89
|
+
_api_instance = IndustrySw2021InsuranceStatementAPI()
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@api
|
|
93
|
+
async def get_industry_sw_2021_insurance_statements( # noqa: PLR0913
|
|
94
|
+
stock_codes: list[str],
|
|
95
|
+
metrics: list[str],
|
|
96
|
+
date: str | None = None,
|
|
97
|
+
start_date: str | None = None,
|
|
98
|
+
end_date: str | None = None,
|
|
99
|
+
limit: int | None = None,
|
|
100
|
+
) -> pd.DataFrame:
|
|
101
|
+
"""获取申万2021版保险类行业的财报数据.
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
stock_codes: 行业代码列表。
|
|
105
|
+
metrics: 指标列表。
|
|
106
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。
|
|
107
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。
|
|
108
|
+
end_date: 结束日期 (YYYY-MM-DD),可选。
|
|
109
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
110
|
+
|
|
111
|
+
Returns:
|
|
112
|
+
包含申万2021版保险类行业财报数据的 DataFrame。
|
|
113
|
+
|
|
114
|
+
Example:
|
|
115
|
+
获取申万2021版保险行业的营业收入::
|
|
116
|
+
|
|
117
|
+
from lixinger import get_industry_sw_2021_insurance_statements
|
|
118
|
+
|
|
119
|
+
df = await get_industry_sw_2021_insurance_statements(
|
|
120
|
+
stock_codes=["490200"],
|
|
121
|
+
metrics=["q.ps.oi.t"],
|
|
122
|
+
date="2026-03-31",
|
|
123
|
+
)
|
|
124
|
+
print(df)
|
|
125
|
+
|
|
126
|
+
"""
|
|
127
|
+
return await _api_instance.get_insurance_statements(
|
|
128
|
+
stock_codes=stock_codes,
|
|
129
|
+
metrics=metrics,
|
|
130
|
+
date=date,
|
|
131
|
+
start_date=start_date,
|
|
132
|
+
end_date=end_date,
|
|
133
|
+
limit=limit,
|
|
134
|
+
)
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"""申万2021版行业 - 非金融类财报数据 API."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
import pandas as pd
|
|
6
|
+
|
|
7
|
+
from lixinger.api.base import BaseAPI
|
|
8
|
+
from lixinger.models.cn.industry.fs.sw_2021.non_financial import IndustrySw2021NonFinancialStatementSchema
|
|
9
|
+
from lixinger.utils.api import api
|
|
10
|
+
from lixinger.utils.dataframe import get_response_df
|
|
11
|
+
from lixinger.utils.dict import flatten_dict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class IndustrySw2021NonFinancialStatementAPI(BaseAPI):
|
|
15
|
+
"""申万2021版非金融类行业财报数据 API."""
|
|
16
|
+
|
|
17
|
+
async def get_non_financial_statements( # noqa: PLR0913
|
|
18
|
+
self,
|
|
19
|
+
stock_codes: list[str],
|
|
20
|
+
metrics: list[str],
|
|
21
|
+
date: str | None = None,
|
|
22
|
+
start_date: str | None = None,
|
|
23
|
+
end_date: str | None = None,
|
|
24
|
+
limit: int | None = None,
|
|
25
|
+
) -> pd.DataFrame:
|
|
26
|
+
"""获取申万2021版非金融类行业的财报数据.
|
|
27
|
+
|
|
28
|
+
API Endpoint: /cn/industry/fs/sw_2021/non_financial
|
|
29
|
+
API Method: POST
|
|
30
|
+
API Doc: https://www.lixinger.com/open/api/doc?api-key=cn/industry/fs/sw_2021/non_financial
|
|
31
|
+
|
|
32
|
+
获取申万2021年版非金融类行业(样本仅包含非金融公司)的财务数据,包括利润表、
|
|
33
|
+
资产负债表、现金流量表、财务指标。注意该行业划分多从2021年开始,
|
|
34
|
+
更早的时间可能没有数据。
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
stock_codes: 行业代码列表,长度 >=1 且 <=100。当传入 start_date
|
|
38
|
+
时只能传入一个行业代码。
|
|
39
|
+
metrics: 指标列表,格式为
|
|
40
|
+
``[granularity].[tableName].[fieldName].[expressionCalculateType]``,
|
|
41
|
+
例如 ``"q.ps.toi.t"``。当 stock_codes 长度大于 1 时最多 48 个
|
|
42
|
+
指标;等于 1 时最多 128 个指标。
|
|
43
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。支持 ``"latest"``。
|
|
44
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。开始和结束的时间
|
|
45
|
+
间隔不超过 10 年。
|
|
46
|
+
end_date: 结束日期 (YYYY-MM-DD),可选,默认上周一。
|
|
47
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
48
|
+
|
|
49
|
+
Returns:
|
|
50
|
+
包含申万2021版非金融类行业财报数据的 DataFrame。
|
|
51
|
+
|
|
52
|
+
Example:
|
|
53
|
+
获取申万2021版食品饮料行业的营业总收入::
|
|
54
|
+
|
|
55
|
+
from lixinger import AsyncLixingerClient
|
|
56
|
+
|
|
57
|
+
async with AsyncLixingerClient() as client:
|
|
58
|
+
df = await client.industry.fs.sw_2021.non_financial.get_non_financial_statements(
|
|
59
|
+
stock_codes=["370000"],
|
|
60
|
+
metrics=["q.ps.toi.t"],
|
|
61
|
+
date="2026-03-31",
|
|
62
|
+
)
|
|
63
|
+
print(df)
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
payload: dict[str, Any] = {
|
|
67
|
+
"stockCodes": stock_codes,
|
|
68
|
+
"metricsList": metrics,
|
|
69
|
+
}
|
|
70
|
+
if date is not None:
|
|
71
|
+
payload["date"] = date
|
|
72
|
+
if start_date is not None:
|
|
73
|
+
payload["startDate"] = start_date
|
|
74
|
+
if end_date is not None:
|
|
75
|
+
payload["endDate"] = end_date
|
|
76
|
+
if limit is not None:
|
|
77
|
+
payload["limit"] = limit
|
|
78
|
+
|
|
79
|
+
data = await self._request("POST", "/cn/industry/fs/sw_2021/non_financial", json=payload)
|
|
80
|
+
|
|
81
|
+
# Flatten nested metrics
|
|
82
|
+
flattened_data = [flatten_dict(item) for item in data]
|
|
83
|
+
|
|
84
|
+
return get_response_df(flattened_data, IndustrySw2021NonFinancialStatementSchema)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
# Functional API instance
|
|
88
|
+
_api_instance = IndustrySw2021NonFinancialStatementAPI()
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@api
|
|
92
|
+
async def get_industry_sw_2021_non_financial_statements( # noqa: PLR0913
|
|
93
|
+
stock_codes: list[str],
|
|
94
|
+
metrics: list[str],
|
|
95
|
+
date: str | None = None,
|
|
96
|
+
start_date: str | None = None,
|
|
97
|
+
end_date: str | None = None,
|
|
98
|
+
limit: int | None = None,
|
|
99
|
+
) -> pd.DataFrame:
|
|
100
|
+
"""获取申万2021版非金融类行业的财报数据.
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
stock_codes: 行业代码列表。
|
|
104
|
+
metrics: 指标列表。
|
|
105
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。
|
|
106
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。
|
|
107
|
+
end_date: 结束日期 (YYYY-MM-DD),可选。
|
|
108
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
包含申万2021版非金融类行业财报数据的 DataFrame。
|
|
112
|
+
|
|
113
|
+
Example:
|
|
114
|
+
获取申万2021版食品饮料行业的营业总收入::
|
|
115
|
+
|
|
116
|
+
from lixinger import get_industry_sw_2021_non_financial_statements
|
|
117
|
+
|
|
118
|
+
df = await get_industry_sw_2021_non_financial_statements(
|
|
119
|
+
stock_codes=["370000"],
|
|
120
|
+
metrics=["q.ps.toi.t"],
|
|
121
|
+
date="2026-03-31",
|
|
122
|
+
)
|
|
123
|
+
print(df)
|
|
124
|
+
|
|
125
|
+
"""
|
|
126
|
+
return await _api_instance.get_non_financial_statements(
|
|
127
|
+
stock_codes=stock_codes,
|
|
128
|
+
metrics=metrics,
|
|
129
|
+
date=date,
|
|
130
|
+
start_date=start_date,
|
|
131
|
+
end_date=end_date,
|
|
132
|
+
limit=limit,
|
|
133
|
+
)
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"""申万2021版行业 - 证券类财报数据 API."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
import pandas as pd
|
|
6
|
+
|
|
7
|
+
from lixinger.api.base import BaseAPI
|
|
8
|
+
from lixinger.models.cn.industry.fs.sw_2021.security import IndustrySw2021SecurityStatementSchema
|
|
9
|
+
from lixinger.utils.api import api
|
|
10
|
+
from lixinger.utils.dataframe import get_response_df
|
|
11
|
+
from lixinger.utils.dict import flatten_dict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class IndustrySw2021SecurityStatementAPI(BaseAPI):
|
|
15
|
+
"""申万2021版证券类行业财报数据 API."""
|
|
16
|
+
|
|
17
|
+
async def get_security_statements( # noqa: PLR0913
|
|
18
|
+
self,
|
|
19
|
+
stock_codes: list[str],
|
|
20
|
+
metrics: list[str],
|
|
21
|
+
date: str | None = None,
|
|
22
|
+
start_date: str | None = None,
|
|
23
|
+
end_date: str | None = None,
|
|
24
|
+
limit: int | None = None,
|
|
25
|
+
) -> pd.DataFrame:
|
|
26
|
+
"""获取申万2021版证券类行业的财报数据.
|
|
27
|
+
|
|
28
|
+
API Endpoint: /cn/industry/fs/sw_2021/security
|
|
29
|
+
API Method: POST
|
|
30
|
+
API Doc: https://www.lixinger.com/open/api/doc?api-key=cn/industry/fs/sw_2021/security
|
|
31
|
+
|
|
32
|
+
获取申万2021年版证券类行业(样本仅包含证券公司)的财务数据,包括利润表、
|
|
33
|
+
资产负债表、现金流量表、财务指标(含经纪业务净收入、投资银行业务净收入、
|
|
34
|
+
资产管理业务净收入等证券行业特有指标)。注意该行业划分多从2021年开始,
|
|
35
|
+
更早的时间可能没有数据。
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
stock_codes: 行业代码列表,长度 >=1 且 <=100。当传入 start_date
|
|
39
|
+
时只能传入一个行业代码。
|
|
40
|
+
metrics: 指标列表,格式为
|
|
41
|
+
``[granularity].[tableName].[fieldName].[expressionCalculateType]``,
|
|
42
|
+
例如 ``"q.ps.oi.t"``。当 stock_codes 长度大于 1 时最多 48 个
|
|
43
|
+
指标;等于 1 时最多 128 个指标。
|
|
44
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。支持 ``"latest"``。
|
|
45
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。开始和结束的时间
|
|
46
|
+
间隔不超过 10 年。
|
|
47
|
+
end_date: 结束日期 (YYYY-MM-DD),可选,默认上周一。
|
|
48
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
49
|
+
|
|
50
|
+
Returns:
|
|
51
|
+
包含申万2021版证券类行业财报数据的 DataFrame。
|
|
52
|
+
|
|
53
|
+
Example:
|
|
54
|
+
获取申万2021版证券行业的营业收入::
|
|
55
|
+
|
|
56
|
+
from lixinger import AsyncLixingerClient
|
|
57
|
+
|
|
58
|
+
async with AsyncLixingerClient() as client:
|
|
59
|
+
df = await client.industry.fs.sw_2021.security.get_security_statements(
|
|
60
|
+
stock_codes=["490100"],
|
|
61
|
+
metrics=["q.ps.oi.t"],
|
|
62
|
+
date="2026-03-31",
|
|
63
|
+
)
|
|
64
|
+
print(df)
|
|
65
|
+
|
|
66
|
+
"""
|
|
67
|
+
payload: dict[str, Any] = {
|
|
68
|
+
"stockCodes": stock_codes,
|
|
69
|
+
"metricsList": metrics,
|
|
70
|
+
}
|
|
71
|
+
if date is not None:
|
|
72
|
+
payload["date"] = date
|
|
73
|
+
if start_date is not None:
|
|
74
|
+
payload["startDate"] = start_date
|
|
75
|
+
if end_date is not None:
|
|
76
|
+
payload["endDate"] = end_date
|
|
77
|
+
if limit is not None:
|
|
78
|
+
payload["limit"] = limit
|
|
79
|
+
|
|
80
|
+
data = await self._request("POST", "/cn/industry/fs/sw_2021/security", json=payload)
|
|
81
|
+
|
|
82
|
+
# Flatten nested metrics
|
|
83
|
+
flattened_data = [flatten_dict(item) for item in data]
|
|
84
|
+
|
|
85
|
+
return get_response_df(flattened_data, IndustrySw2021SecurityStatementSchema)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
# Functional API instance
|
|
89
|
+
_api_instance = IndustrySw2021SecurityStatementAPI()
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@api
|
|
93
|
+
async def get_industry_sw_2021_security_statements( # noqa: PLR0913
|
|
94
|
+
stock_codes: list[str],
|
|
95
|
+
metrics: list[str],
|
|
96
|
+
date: str | None = None,
|
|
97
|
+
start_date: str | None = None,
|
|
98
|
+
end_date: str | None = None,
|
|
99
|
+
limit: int | None = None,
|
|
100
|
+
) -> pd.DataFrame:
|
|
101
|
+
"""获取申万2021版证券类行业的财报数据.
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
stock_codes: 行业代码列表。
|
|
105
|
+
metrics: 指标列表。
|
|
106
|
+
date: 日期 (YYYY-MM-DD),与 start_date 二选一。
|
|
107
|
+
start_date: 开始日期 (YYYY-MM-DD),与 date 二选一。
|
|
108
|
+
end_date: 结束日期 (YYYY-MM-DD),可选。
|
|
109
|
+
limit: 返回最近数据的数量,仅在 date range 请求下生效。
|
|
110
|
+
|
|
111
|
+
Returns:
|
|
112
|
+
包含申万2021版证券类行业财报数据的 DataFrame。
|
|
113
|
+
|
|
114
|
+
Example:
|
|
115
|
+
获取申万2021版证券行业的营业收入::
|
|
116
|
+
|
|
117
|
+
from lixinger import get_industry_sw_2021_security_statements
|
|
118
|
+
|
|
119
|
+
df = await get_industry_sw_2021_security_statements(
|
|
120
|
+
stock_codes=["490100"],
|
|
121
|
+
metrics=["q.ps.oi.t"],
|
|
122
|
+
date="2026-03-31",
|
|
123
|
+
)
|
|
124
|
+
print(df)
|
|
125
|
+
|
|
126
|
+
"""
|
|
127
|
+
return await _api_instance.get_security_statements(
|
|
128
|
+
stock_codes=stock_codes,
|
|
129
|
+
metrics=metrics,
|
|
130
|
+
date=date,
|
|
131
|
+
start_date=start_date,
|
|
132
|
+
end_date=end_date,
|
|
133
|
+
limit=limit,
|
|
134
|
+
)
|
|
@@ -4,6 +4,13 @@ from typing import Any
|
|
|
4
4
|
|
|
5
5
|
import pandas as pd
|
|
6
6
|
|
|
7
|
+
from lixinger.api.cn.industry.fs.sw_2021.bank import IndustrySw2021BankStatementAPI
|
|
8
|
+
from lixinger.api.cn.industry.fs.sw_2021.hybrid import IndustrySw2021HybridStatementAPI
|
|
9
|
+
from lixinger.api.cn.industry.fs.sw_2021.insurance import IndustrySw2021InsuranceStatementAPI
|
|
10
|
+
from lixinger.api.cn.industry.fs.sw_2021.non_financial import (
|
|
11
|
+
IndustrySw2021NonFinancialStatementAPI,
|
|
12
|
+
)
|
|
13
|
+
from lixinger.api.cn.industry.fs.sw_2021.security import IndustrySw2021SecurityStatementAPI
|
|
7
14
|
from lixinger.api.cn.industry.margin_trading.cni import IndustryCniMarginTradingAPI
|
|
8
15
|
from lixinger.api.cn.industry.margin_trading.sw import IndustrySwMarginTradingAPI
|
|
9
16
|
from lixinger.api.cn.industry.margin_trading.sw_2021 import (
|
|
@@ -41,6 +48,64 @@ class IndustryMarginTradingNamespace:
|
|
|
41
48
|
self.cni = cni
|
|
42
49
|
|
|
43
50
|
|
|
51
|
+
class IndustryFSSw2021Namespace:
|
|
52
|
+
"""Namespace for industry (申万2021版) financial statement APIs.
|
|
53
|
+
|
|
54
|
+
Groups all industry financial statement APIs by industry sample type:
|
|
55
|
+
|
|
56
|
+
- bank: 银行类行业财报
|
|
57
|
+
- hybrid: 混合型行业财报
|
|
58
|
+
- insurance: 保险类行业财报
|
|
59
|
+
- non_financial: 非金融类行业财报
|
|
60
|
+
- security: 证券类行业财报
|
|
61
|
+
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
def __init__(
|
|
65
|
+
self,
|
|
66
|
+
bank: IndustrySw2021BankStatementAPI,
|
|
67
|
+
hybrid: IndustrySw2021HybridStatementAPI,
|
|
68
|
+
insurance: IndustrySw2021InsuranceStatementAPI,
|
|
69
|
+
non_financial: IndustrySw2021NonFinancialStatementAPI,
|
|
70
|
+
security: IndustrySw2021SecurityStatementAPI,
|
|
71
|
+
) -> None:
|
|
72
|
+
"""Initialize the sw_2021 industry financial statement namespace.
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
bank: 申万2021版银行类行业财报 API
|
|
76
|
+
hybrid: 申万2021版混合型行业财报 API
|
|
77
|
+
insurance: 申万2021版保险类行业财报 API
|
|
78
|
+
non_financial: 申万2021版非金融类行业财报 API
|
|
79
|
+
security: 申万2021版证券类行业财报 API
|
|
80
|
+
|
|
81
|
+
"""
|
|
82
|
+
self.bank = bank
|
|
83
|
+
self.hybrid = hybrid
|
|
84
|
+
self.insurance = insurance
|
|
85
|
+
self.non_financial = non_financial
|
|
86
|
+
self.security = security
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class IndustryFSNamespace:
|
|
90
|
+
"""Namespace for industry financial statement APIs.
|
|
91
|
+
|
|
92
|
+
Groups all industry financial statement APIs by industry classification
|
|
93
|
+
system:
|
|
94
|
+
|
|
95
|
+
- sw_2021: 申万2021版行业财报数据
|
|
96
|
+
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
def __init__(self, sw_2021: IndustryFSSw2021Namespace) -> None:
|
|
100
|
+
"""Initialize the industry financial statement namespace.
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
sw_2021: 申万2021版行业财报数据 namespace
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
self.sw_2021 = sw_2021
|
|
107
|
+
|
|
108
|
+
|
|
44
109
|
class IndustryNamespace:
|
|
45
110
|
"""Namespace for industry-related APIs.
|
|
46
111
|
|
|
@@ -51,14 +116,25 @@ class IndustryNamespace:
|
|
|
51
116
|
- margin_trading.sw: 申万行业
|
|
52
117
|
- margin_trading.sw_2021: 申万2021版行业
|
|
53
118
|
- margin_trading.cni: 国证行业
|
|
119
|
+
- fs: 行业财报数据 API 组
|
|
120
|
+
- fs.sw_2021.bank: 申万2021版银行类行业财报
|
|
121
|
+
- fs.sw_2021.hybrid: 申万2021版混合型行业财报
|
|
122
|
+
- fs.sw_2021.insurance: 申万2021版保险类行业财报
|
|
123
|
+
- fs.sw_2021.non_financial: 申万2021版非金融类行业财报
|
|
124
|
+
- fs.sw_2021.security: 申万2021版证券类行业财报
|
|
54
125
|
|
|
55
126
|
"""
|
|
56
127
|
|
|
57
|
-
def __init__(
|
|
128
|
+
def __init__( # noqa: PLR0913
|
|
58
129
|
self,
|
|
59
130
|
margin_trading_sw: IndustrySwMarginTradingAPI,
|
|
60
131
|
margin_trading_sw_2021: IndustrySw2021MarginTradingAPI,
|
|
61
132
|
margin_trading_cni: IndustryCniMarginTradingAPI,
|
|
133
|
+
fs_sw_2021_bank: IndustrySw2021BankStatementAPI,
|
|
134
|
+
fs_sw_2021_hybrid: IndustrySw2021HybridStatementAPI,
|
|
135
|
+
fs_sw_2021_insurance: IndustrySw2021InsuranceStatementAPI,
|
|
136
|
+
fs_sw_2021_non_financial: IndustrySw2021NonFinancialStatementAPI,
|
|
137
|
+
fs_sw_2021_security: IndustrySw2021SecurityStatementAPI,
|
|
62
138
|
) -> None:
|
|
63
139
|
"""Initialize the industry namespace.
|
|
64
140
|
|
|
@@ -66,6 +142,11 @@ class IndustryNamespace:
|
|
|
66
142
|
margin_trading_sw: 申万行业融资融券 API
|
|
67
143
|
margin_trading_sw_2021: 申万2021版行业融资融券 API
|
|
68
144
|
margin_trading_cni: 国证行业融资融券 API
|
|
145
|
+
fs_sw_2021_bank: 申万2021版银行类行业财报 API
|
|
146
|
+
fs_sw_2021_hybrid: 申万2021版混合型行业财报 API
|
|
147
|
+
fs_sw_2021_insurance: 申万2021版保险类行业财报 API
|
|
148
|
+
fs_sw_2021_non_financial: 申万2021版非金融类行业财报 API
|
|
149
|
+
fs_sw_2021_security: 申万2021版证券类行业财报 API
|
|
69
150
|
|
|
70
151
|
"""
|
|
71
152
|
self.margin_trading = IndustryMarginTradingNamespace(
|
|
@@ -73,6 +154,15 @@ class IndustryNamespace:
|
|
|
73
154
|
sw_2021=margin_trading_sw_2021,
|
|
74
155
|
cni=margin_trading_cni,
|
|
75
156
|
)
|
|
157
|
+
self.fs = IndustryFSNamespace(
|
|
158
|
+
sw_2021=IndustryFSSw2021Namespace(
|
|
159
|
+
bank=fs_sw_2021_bank,
|
|
160
|
+
hybrid=fs_sw_2021_hybrid,
|
|
161
|
+
insurance=fs_sw_2021_insurance,
|
|
162
|
+
non_financial=fs_sw_2021_non_financial,
|
|
163
|
+
security=fs_sw_2021_security,
|
|
164
|
+
),
|
|
165
|
+
)
|
|
76
166
|
|
|
77
167
|
# Convenience aliases for shorter access
|
|
78
168
|
async def get_sw_margin_trading(self, *args: Any, **kwargs: Any) -> pd.DataFrame:
|
|
@@ -86,3 +176,23 @@ class IndustryNamespace:
|
|
|
86
176
|
async def get_cni_margin_trading(self, *args: Any, **kwargs: Any) -> pd.DataFrame:
|
|
87
177
|
"""Alias for margin_trading.cni.get_margin_trading."""
|
|
88
178
|
return await self.margin_trading.cni.get_margin_trading(*args, **kwargs)
|
|
179
|
+
|
|
180
|
+
async def get_sw_2021_bank_statements(self, *args: Any, **kwargs: Any) -> pd.DataFrame:
|
|
181
|
+
"""Alias for fs.sw_2021.bank.get_bank_statements."""
|
|
182
|
+
return await self.fs.sw_2021.bank.get_bank_statements(*args, **kwargs)
|
|
183
|
+
|
|
184
|
+
async def get_sw_2021_hybrid_statements(self, *args: Any, **kwargs: Any) -> pd.DataFrame:
|
|
185
|
+
"""Alias for fs.sw_2021.hybrid.get_hybrid_statements."""
|
|
186
|
+
return await self.fs.sw_2021.hybrid.get_hybrid_statements(*args, **kwargs)
|
|
187
|
+
|
|
188
|
+
async def get_sw_2021_insurance_statements(self, *args: Any, **kwargs: Any) -> pd.DataFrame:
|
|
189
|
+
"""Alias for fs.sw_2021.insurance.get_insurance_statements."""
|
|
190
|
+
return await self.fs.sw_2021.insurance.get_insurance_statements(*args, **kwargs)
|
|
191
|
+
|
|
192
|
+
async def get_sw_2021_non_financial_statements(self, *args: Any, **kwargs: Any) -> pd.DataFrame:
|
|
193
|
+
"""Alias for fs.sw_2021.non_financial.get_non_financial_statements."""
|
|
194
|
+
return await self.fs.sw_2021.non_financial.get_non_financial_statements(*args, **kwargs)
|
|
195
|
+
|
|
196
|
+
async def get_sw_2021_security_statements(self, *args: Any, **kwargs: Any) -> pd.DataFrame:
|
|
197
|
+
"""Alias for fs.sw_2021.security.get_security_statements."""
|
|
198
|
+
return await self.fs.sw_2021.security.get_security_statements(*args, **kwargs)
|
lixinger/client.py
CHANGED
|
@@ -46,7 +46,12 @@ from lixinger.api.cn.index import (
|
|
|
46
46
|
from lixinger.api.cn.index.namespace import IndexNamespace
|
|
47
47
|
from lixinger.api.cn.industry import (
|
|
48
48
|
IndustryCniMarginTradingAPI,
|
|
49
|
+
IndustrySw2021BankStatementAPI,
|
|
50
|
+
IndustrySw2021HybridStatementAPI,
|
|
51
|
+
IndustrySw2021InsuranceStatementAPI,
|
|
49
52
|
IndustrySw2021MarginTradingAPI,
|
|
53
|
+
IndustrySw2021NonFinancialStatementAPI,
|
|
54
|
+
IndustrySw2021SecurityStatementAPI,
|
|
50
55
|
IndustrySwMarginTradingAPI,
|
|
51
56
|
)
|
|
52
57
|
from lixinger.api.cn.industry.namespace import IndustryNamespace
|
|
@@ -243,18 +248,41 @@ class AsyncLixingerClient:
|
|
|
243
248
|
self._http_client, self.config, self._rate_limiter
|
|
244
249
|
)
|
|
245
250
|
cn_industry_margin_trading_cni = IndustryCniMarginTradingAPI(self._http_client, self.config, self._rate_limiter)
|
|
251
|
+
cn_industry_fs_sw_2021_bank = IndustrySw2021BankStatementAPI(self._http_client, self.config, self._rate_limiter)
|
|
252
|
+
cn_industry_fs_sw_2021_hybrid = IndustrySw2021HybridStatementAPI(
|
|
253
|
+
self._http_client, self.config, self._rate_limiter
|
|
254
|
+
)
|
|
255
|
+
cn_industry_fs_sw_2021_insurance = IndustrySw2021InsuranceStatementAPI(
|
|
256
|
+
self._http_client, self.config, self._rate_limiter
|
|
257
|
+
)
|
|
258
|
+
cn_industry_fs_sw_2021_non_financial = IndustrySw2021NonFinancialStatementAPI(
|
|
259
|
+
self._http_client, self.config, self._rate_limiter
|
|
260
|
+
)
|
|
261
|
+
cn_industry_fs_sw_2021_security = IndustrySw2021SecurityStatementAPI(
|
|
262
|
+
self._http_client, self.config, self._rate_limiter
|
|
263
|
+
)
|
|
246
264
|
|
|
247
265
|
# Industry namespace (groups all industry APIs)
|
|
248
266
|
self.cn_industry = IndustryNamespace(
|
|
249
267
|
margin_trading_sw=cn_industry_margin_trading_sw,
|
|
250
268
|
margin_trading_sw_2021=cn_industry_margin_trading_sw_2021,
|
|
251
269
|
margin_trading_cni=cn_industry_margin_trading_cni,
|
|
270
|
+
fs_sw_2021_bank=cn_industry_fs_sw_2021_bank,
|
|
271
|
+
fs_sw_2021_hybrid=cn_industry_fs_sw_2021_hybrid,
|
|
272
|
+
fs_sw_2021_insurance=cn_industry_fs_sw_2021_insurance,
|
|
273
|
+
fs_sw_2021_non_financial=cn_industry_fs_sw_2021_non_financial,
|
|
274
|
+
fs_sw_2021_security=cn_industry_fs_sw_2021_security,
|
|
252
275
|
)
|
|
253
276
|
|
|
254
277
|
# Legacy flat access for industry APIs (deprecated, for backward compatibility)
|
|
255
278
|
self.cn_industry_margin_trading_sw = cn_industry_margin_trading_sw
|
|
256
279
|
self.cn_industry_margin_trading_sw_2021 = cn_industry_margin_trading_sw_2021
|
|
257
280
|
self.cn_industry_margin_trading_cni = cn_industry_margin_trading_cni
|
|
281
|
+
self.cn_industry_fs_sw_2021_bank = cn_industry_fs_sw_2021_bank
|
|
282
|
+
self.cn_industry_fs_sw_2021_hybrid = cn_industry_fs_sw_2021_hybrid
|
|
283
|
+
self.cn_industry_fs_sw_2021_insurance = cn_industry_fs_sw_2021_insurance
|
|
284
|
+
self.cn_industry_fs_sw_2021_non_financial = cn_industry_fs_sw_2021_non_financial
|
|
285
|
+
self.cn_industry_fs_sw_2021_security = cn_industry_fs_sw_2021_security
|
|
258
286
|
|
|
259
287
|
# Macro APIs
|
|
260
288
|
macro_national_debt = NationalDebtAPI(self._http_client, self.config, self._rate_limiter)
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
"""Industry-related models."""
|
|
2
2
|
|
|
3
|
+
from lixinger.models.cn.industry.fs import (
|
|
4
|
+
IndustrySw2021BankStatementSchema,
|
|
5
|
+
IndustrySw2021HybridStatementSchema,
|
|
6
|
+
IndustrySw2021InsuranceStatementSchema,
|
|
7
|
+
IndustrySw2021NonFinancialStatementSchema,
|
|
8
|
+
IndustrySw2021SecurityStatementSchema,
|
|
9
|
+
)
|
|
3
10
|
from lixinger.models.cn.industry.margin_trading import (
|
|
4
11
|
IndustryCniMarginTrading,
|
|
5
12
|
IndustrySw2021MarginTrading,
|
|
@@ -8,6 +15,11 @@ from lixinger.models.cn.industry.margin_trading import (
|
|
|
8
15
|
|
|
9
16
|
__all__ = [
|
|
10
17
|
"IndustryCniMarginTrading",
|
|
18
|
+
"IndustrySw2021BankStatementSchema",
|
|
19
|
+
"IndustrySw2021HybridStatementSchema",
|
|
20
|
+
"IndustrySw2021InsuranceStatementSchema",
|
|
11
21
|
"IndustrySw2021MarginTrading",
|
|
22
|
+
"IndustrySw2021NonFinancialStatementSchema",
|
|
23
|
+
"IndustrySw2021SecurityStatementSchema",
|
|
12
24
|
"IndustrySwMarginTrading",
|
|
13
25
|
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Industry financial statement models."""
|
|
2
|
+
|
|
3
|
+
from lixinger.models.cn.industry.fs.sw_2021 import (
|
|
4
|
+
IndustrySw2021BankStatementSchema,
|
|
5
|
+
IndustrySw2021HybridStatementSchema,
|
|
6
|
+
IndustrySw2021InsuranceStatementSchema,
|
|
7
|
+
IndustrySw2021NonFinancialStatementSchema,
|
|
8
|
+
IndustrySw2021SecurityStatementSchema,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"IndustrySw2021BankStatementSchema",
|
|
13
|
+
"IndustrySw2021HybridStatementSchema",
|
|
14
|
+
"IndustrySw2021InsuranceStatementSchema",
|
|
15
|
+
"IndustrySw2021NonFinancialStatementSchema",
|
|
16
|
+
"IndustrySw2021SecurityStatementSchema",
|
|
17
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""申万2021版行业财务报表数据模型."""
|
|
2
|
+
|
|
3
|
+
from lixinger.models.cn.industry.fs.sw_2021.bank import IndustrySw2021BankStatementSchema
|
|
4
|
+
from lixinger.models.cn.industry.fs.sw_2021.hybrid import IndustrySw2021HybridStatementSchema
|
|
5
|
+
from lixinger.models.cn.industry.fs.sw_2021.insurance import IndustrySw2021InsuranceStatementSchema
|
|
6
|
+
from lixinger.models.cn.industry.fs.sw_2021.non_financial import IndustrySw2021NonFinancialStatementSchema
|
|
7
|
+
from lixinger.models.cn.industry.fs.sw_2021.security import IndustrySw2021SecurityStatementSchema
|
|
8
|
+
|
|
9
|
+
__all__ = [
|
|
10
|
+
"IndustrySw2021BankStatementSchema",
|
|
11
|
+
"IndustrySw2021HybridStatementSchema",
|
|
12
|
+
"IndustrySw2021InsuranceStatementSchema",
|
|
13
|
+
"IndustrySw2021NonFinancialStatementSchema",
|
|
14
|
+
"IndustrySw2021SecurityStatementSchema",
|
|
15
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""申万2021版行业 - 银行类财报数据模型."""
|
|
2
|
+
|
|
3
|
+
import pandera.pandas as pa
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class IndustrySw2021BankStatementSchema(pa.DataFrameModel):
|
|
7
|
+
"""申万2021版银行类行业财报数据模型."""
|
|
8
|
+
|
|
9
|
+
class Config:
|
|
10
|
+
"""Pandera configuration."""
|
|
11
|
+
|
|
12
|
+
coerce = True
|
|
13
|
+
strict = False # Allow extra metrics columns
|
|
14
|
+
|
|
15
|
+
date: pa.typing.Series[pa.typing.DateTime]
|
|
16
|
+
stock_code: pa.typing.Series[str]
|
|
17
|
+
currency: pa.typing.Series[str]
|
|
18
|
+
report_date: pa.typing.Series[pa.typing.DateTime]
|
|
19
|
+
report_type: pa.typing.Series[str]
|
|
20
|
+
standard_date: pa.typing.Series[pa.typing.DateTime]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""申万2021版行业 - 混合型财报数据模型."""
|
|
2
|
+
|
|
3
|
+
import pandera.pandas as pa
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class IndustrySw2021HybridStatementSchema(pa.DataFrameModel):
|
|
7
|
+
"""申万2021版混合型行业财报数据模型."""
|
|
8
|
+
|
|
9
|
+
class Config:
|
|
10
|
+
"""Pandera configuration."""
|
|
11
|
+
|
|
12
|
+
coerce = True
|
|
13
|
+
strict = False # Allow extra metrics columns
|
|
14
|
+
|
|
15
|
+
date: pa.typing.Series[pa.typing.DateTime]
|
|
16
|
+
stock_code: pa.typing.Series[str]
|
|
17
|
+
currency: pa.typing.Series[str]
|
|
18
|
+
report_date: pa.typing.Series[pa.typing.DateTime]
|
|
19
|
+
report_type: pa.typing.Series[str]
|
|
20
|
+
standard_date: pa.typing.Series[pa.typing.DateTime]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""申万2021版行业 - 保险类财报数据模型."""
|
|
2
|
+
|
|
3
|
+
import pandera.pandas as pa
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class IndustrySw2021InsuranceStatementSchema(pa.DataFrameModel):
|
|
7
|
+
"""申万2021版保险类行业财报数据模型."""
|
|
8
|
+
|
|
9
|
+
class Config:
|
|
10
|
+
"""Pandera configuration."""
|
|
11
|
+
|
|
12
|
+
coerce = True
|
|
13
|
+
strict = False # Allow extra metrics columns
|
|
14
|
+
|
|
15
|
+
date: pa.typing.Series[pa.typing.DateTime]
|
|
16
|
+
stock_code: pa.typing.Series[str]
|
|
17
|
+
currency: pa.typing.Series[str]
|
|
18
|
+
report_date: pa.typing.Series[pa.typing.DateTime]
|
|
19
|
+
report_type: pa.typing.Series[str]
|
|
20
|
+
standard_date: pa.typing.Series[pa.typing.DateTime]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""申万2021版行业 - 非金融类财报数据模型."""
|
|
2
|
+
|
|
3
|
+
import pandera.pandas as pa
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class IndustrySw2021NonFinancialStatementSchema(pa.DataFrameModel):
|
|
7
|
+
"""申万2021版非金融类行业财报数据模型."""
|
|
8
|
+
|
|
9
|
+
class Config:
|
|
10
|
+
"""Pandera configuration."""
|
|
11
|
+
|
|
12
|
+
coerce = True
|
|
13
|
+
strict = False # Allow extra metrics columns
|
|
14
|
+
|
|
15
|
+
date: pa.typing.Series[pa.typing.DateTime]
|
|
16
|
+
stock_code: pa.typing.Series[str]
|
|
17
|
+
currency: pa.typing.Series[str]
|
|
18
|
+
report_date: pa.typing.Series[pa.typing.DateTime]
|
|
19
|
+
report_type: pa.typing.Series[str]
|
|
20
|
+
standard_date: pa.typing.Series[pa.typing.DateTime]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""申万2021版行业 - 证券类财报数据模型."""
|
|
2
|
+
|
|
3
|
+
import pandera.pandas as pa
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class IndustrySw2021SecurityStatementSchema(pa.DataFrameModel):
|
|
7
|
+
"""申万2021版证券类行业财报数据模型."""
|
|
8
|
+
|
|
9
|
+
class Config:
|
|
10
|
+
"""Pandera configuration."""
|
|
11
|
+
|
|
12
|
+
coerce = True
|
|
13
|
+
strict = False # Allow extra metrics columns
|
|
14
|
+
|
|
15
|
+
date: pa.typing.Series[pa.typing.DateTime]
|
|
16
|
+
stock_code: pa.typing.Series[str]
|
|
17
|
+
currency: pa.typing.Series[str]
|
|
18
|
+
report_date: pa.typing.Series[pa.typing.DateTime]
|
|
19
|
+
report_type: pa.typing.Series[str]
|
|
20
|
+
standard_date: pa.typing.Series[pa.typing.DateTime]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
lixinger/__init__.py,sha256=
|
|
2
|
-
lixinger/client.py,sha256=
|
|
1
|
+
lixinger/__init__.py,sha256=UJw1snOuJOR2n_XDQGX_s_qIUzP18PLBQT-JIm5kXMI,3812
|
|
2
|
+
lixinger/client.py,sha256=Az6obw2f2djk3s30Y6mYgCS4P01YqgUJEARUwQLR_Kc,17108
|
|
3
3
|
lixinger/config.py,sha256=JPz8EOrf1kP4Do-Z5-MsnOM0pMrNE1ZsP-Qoarh9y4c,2008
|
|
4
4
|
lixinger/exceptions.py,sha256=Gkv1z-LC09paYGVs430-gDgDs43dLyRHbglB3Frehd4,1069
|
|
5
5
|
lixinger/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -50,8 +50,15 @@ lixinger/api/cn/index/fs/bank.py,sha256=zjDB_d06E_gxAvVNyk9Byoa5ShlevNoc75z5gVBH
|
|
|
50
50
|
lixinger/api/cn/index/fs/hybrid.py,sha256=qs25ZXdCBiIRQ3mm2yyXQngSGtLIs1W93nvRxQDubIE,4429
|
|
51
51
|
lixinger/api/cn/index/fs/non_financial.py,sha256=XlP9Jl5bHUto6mybj4WGCb11LjYINzwYhJaG_WEHYww,4599
|
|
52
52
|
lixinger/api/cn/index/fs/security.py,sha256=l1Raf8GuYpthRDgNSMnVjDn9AcKLG5qP-wVKMd4GKQw,4458
|
|
53
|
-
lixinger/api/cn/industry/__init__.py,sha256=
|
|
54
|
-
lixinger/api/cn/industry/namespace.py,sha256=
|
|
53
|
+
lixinger/api/cn/industry/__init__.py,sha256=uUWs9_EL1Pk7Q6DGaVR8JdRx8k_mSmqMqQTWPV_83k4,1505
|
|
54
|
+
lixinger/api/cn/industry/namespace.py,sha256=PxqzjTk4OEuk8FVI8JEGMa5eZ3vMW9NeuLaM-lbjRmk,7869
|
|
55
|
+
lixinger/api/cn/industry/fs/__init__.py,sha256=6incmfX-jJGo5AJ7yhD_5G3wSYUbZTpIKA-Oy-276FM,1173
|
|
56
|
+
lixinger/api/cn/industry/fs/sw_2021/__init__.py,sha256=PgVEwKY7MFznIGP-DYOLOlT8_heZAlutha_mOjH8D7I,1635
|
|
57
|
+
lixinger/api/cn/industry/fs/sw_2021/bank.py,sha256=NhcrDaa_DhArBmg0QYVEIfKIMX4dtq6gL_d7UD1Cjkw,4812
|
|
58
|
+
lixinger/api/cn/industry/fs/sw_2021/hybrid.py,sha256=mUZyBmeDEUZ7F5p3RB1BHcDe8I37jNBXpYzSyq5m7p4,4885
|
|
59
|
+
lixinger/api/cn/industry/fs/sw_2021/insurance.py,sha256=WVMt0Rn3qjXvHYqQPQjEiLkDBW7ZqxsvkeaH2W1vGPk,4960
|
|
60
|
+
lixinger/api/cn/industry/fs/sw_2021/non_financial.py,sha256=lOgcL21hgubNoo2ZEkt9tkXW1GaKRGdDJLsKMXtDyjk,4947
|
|
61
|
+
lixinger/api/cn/industry/fs/sw_2021/security.py,sha256=z2hDfXTELXVJAQMJ-Q7Vvjo9-nE9ZMbCWIfAx0jUx3A,4957
|
|
55
62
|
lixinger/api/cn/industry/margin_trading/__init__.py,sha256=4JZDCF6v2TPg9uyBLKXAfHKVrDGpshjQkoJejdKwCC4,944
|
|
56
63
|
lixinger/api/cn/industry/margin_trading/cni.py,sha256=7IqidE2N2_INiVybeiTt5qFRUY4PJsY6nUPEGtdWJlM,4600
|
|
57
64
|
lixinger/api/cn/industry/margin_trading/sw.py,sha256=hjC5Uf7XXSwiiqoloIWFx5nDzbxd_D5bB1QPQCEjUjg,4591
|
|
@@ -105,7 +112,14 @@ lixinger/models/cn/index/fs/bank.py,sha256=DA_sRFSsK5IE0JQtp3pHdvPJQxbipHsSyKahc
|
|
|
105
112
|
lixinger/models/cn/index/fs/hybrid.py,sha256=AlCoEfkkPdWGxE_K71rBKgwWpR4iWTaMJ8bc56YxYrk,565
|
|
106
113
|
lixinger/models/cn/index/fs/non_financial.py,sha256=UpWXDDMiOdJN6WNc5R-PsHy9l9Th3xsKnOjUbID4Gug,585
|
|
107
114
|
lixinger/models/cn/index/fs/security.py,sha256=VTYDvTQ5CKhqZsXeEyWqFNvugZ4UA3CLW0DkYTrOHtc,571
|
|
108
|
-
lixinger/models/cn/industry/__init__.py,sha256=
|
|
115
|
+
lixinger/models/cn/industry/__init__.py,sha256=qkYcHTxSbJfTVhpxYYGw1sgwdgZA82KgcrDf_WJkiSw,781
|
|
116
|
+
lixinger/models/cn/industry/fs/__init__.py,sha256=JRgbHzfMKocZmUyOmK0rxtP-6fVCcB6MrxkcNzKrDls,552
|
|
117
|
+
lixinger/models/cn/industry/fs/sw_2021/__init__.py,sha256=TgGBHhteRuLcXd_uESeSocTlcbU65s_Bw-vWFohyGSs,780
|
|
118
|
+
lixinger/models/cn/industry/fs/sw_2021/bank.py,sha256=WvcyzTYcihtxhV9tIW2OPMtoqxRycf0vHWGKboGyEYw,610
|
|
119
|
+
lixinger/models/cn/industry/fs/sw_2021/hybrid.py,sha256=Su7kc7rgXjeoKwfhv6jhDH1_IFyRz3JVtbOMxDFL8LM,612
|
|
120
|
+
lixinger/models/cn/industry/fs/sw_2021/insurance.py,sha256=ixd-x7ZcewSef_HngePEVL5vc2pU_Xx7NCGrIS-3lRw,615
|
|
121
|
+
lixinger/models/cn/industry/fs/sw_2021/non_financial.py,sha256=sZPTiMjbrOZhayDAbzTLi_A8x_dIlg4VXqr5XEvAXNc,624
|
|
122
|
+
lixinger/models/cn/industry/fs/sw_2021/security.py,sha256=VjZXFgy4OE0agEyiGXEQkkoUpzTPZZ6zoSAihjW4xT0,614
|
|
109
123
|
lixinger/models/cn/industry/margin_trading/__init__.py,sha256=JHzyvqzawYkgHa3HPNcY1B58PN2SZe-ZXhThHXlmSJ8,432
|
|
110
124
|
lixinger/models/cn/industry/margin_trading/cni.py,sha256=D8O-SXFR1_6lboRzMMNxaLA3KnSlHHeS1N5kjUIUPrs,1375
|
|
111
125
|
lixinger/models/cn/industry/margin_trading/sw.py,sha256=GyBhpZxSm1aoQHdzJvjb5INp_lrTFh4Alp2WaDyPhVM,1374
|
|
@@ -121,7 +135,7 @@ lixinger/utils/dataframe.py,sha256=tYBrNdmJ4poyuwD-9XgzHt3A_A8bBo0cdHiu8Yy9e9A,2
|
|
|
121
135
|
lixinger/utils/dict.py,sha256=yvbUtv8QpRmy0d_o_7gCuEwwiEfBji5_xB490ANxilw,589
|
|
122
136
|
lixinger/utils/rate_limiter.py,sha256=ZHlRTTL60L62uRA_f--LD26qkAfk-pHBllRqPapAXQM,1141
|
|
123
137
|
lixinger/utils/retry.py,sha256=C9QBcrpD7WYAuT8R4SJfWNUZFj1mZsv-qyTRIFQDmwc,2862
|
|
124
|
-
lixinger_python-0.3.
|
|
125
|
-
lixinger_python-0.3.
|
|
126
|
-
lixinger_python-0.3.
|
|
127
|
-
lixinger_python-0.3.
|
|
138
|
+
lixinger_python-0.3.15.dist-info/METADATA,sha256=50zLHID5kZeywTeIOnGgmJKFTWIaiZ5fVl825ZJDwpk,9207
|
|
139
|
+
lixinger_python-0.3.15.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
140
|
+
lixinger_python-0.3.15.dist-info/licenses/LICENSE,sha256=5oOwRq1lHSOScbNGCHr2feuNnhNYdGcArj6fSUfsC5U,1064
|
|
141
|
+
lixinger_python-0.3.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|