ffdata 0.2.9__tar.gz → 0.2.10__tar.gz
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.
- {ffdata-0.2.9 → ffdata-0.2.10}/PKG-INFO +1 -1
- {ffdata-0.2.9 → ffdata-0.2.10}/pyproject.toml +1 -1
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata/__init__.py +18 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata/client.py +60 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata.egg-info/PKG-INFO +1 -1
- {ffdata-0.2.9 → ffdata-0.2.10}/README.md +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/scripts/configure_ffdata.sh +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/setup.cfg +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata/cli.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata/datasets/__init__.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata/datasets/manager.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata/local/__init__.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata/local/store.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata/transport/__init__.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata/transport/http.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata.egg-info/SOURCES.txt +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata.egg-info/dependency_links.txt +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata.egg-info/entry_points.txt +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata.egg-info/requires.txt +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata.egg-info/top_level.txt +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata_common/__init__.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata_common/codecs/__init__.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata_common/codecs/arrow.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata_common/errors.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata_common/protocol.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata_common/schemas/__init__.py +0 -0
- {ffdata-0.2.9 → ffdata-0.2.10}/src/ffdata_common/schemas/manifest.py +0 -0
|
@@ -63,6 +63,21 @@ def stock_valuation_daily(*args: Any, **kwargs: Any):
|
|
|
63
63
|
return _client().stock_valuation_daily(*args, **kwargs)
|
|
64
64
|
|
|
65
65
|
|
|
66
|
+
def stock_performance_daily(*args: Any, **kwargs: Any):
|
|
67
|
+
"""通过默认客户端查询股票日行情表现(特色指标:连涨跌天数、破发破净、涨跌停、区间新高新低)。"""
|
|
68
|
+
return _client().stock_performance_daily(*args, **kwargs)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def stock_limit_price_daily(*args: Any, **kwargs: Any):
|
|
72
|
+
"""通过默认客户端查询 A 股每日涨跌停价(Tushare ``stk_limit`` 复刻)。"""
|
|
73
|
+
return _client().stock_limit_price_daily(*args, **kwargs)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def tail_risk_signal_daily(*args: Any, **kwargs: Any):
|
|
77
|
+
"""通过默认客户端查询尾部风险控制信号(沪深300 / 纳斯达克100)。"""
|
|
78
|
+
return _client().tail_risk_signal_daily(*args, **kwargs)
|
|
79
|
+
|
|
80
|
+
|
|
66
81
|
def index_daily(*args: Any, **kwargs: Any):
|
|
67
82
|
return _client().index_daily(*args, **kwargs)
|
|
68
83
|
|
|
@@ -217,6 +232,9 @@ __all__ = [
|
|
|
217
232
|
"stock_adjusting_factor",
|
|
218
233
|
"stock_basic",
|
|
219
234
|
"stock_daily",
|
|
235
|
+
"stock_limit_price_daily",
|
|
236
|
+
"stock_performance_daily",
|
|
220
237
|
"stock_valuation_daily",
|
|
238
|
+
"tail_risk_signal_daily",
|
|
221
239
|
"trade_cal",
|
|
222
240
|
]
|
|
@@ -179,6 +179,66 @@ class Client:
|
|
|
179
179
|
fields=fields,
|
|
180
180
|
)
|
|
181
181
|
|
|
182
|
+
def stock_performance_daily(
|
|
183
|
+
self,
|
|
184
|
+
ts_code: str | list[str] | None = None,
|
|
185
|
+
*,
|
|
186
|
+
trade_date: Any = None,
|
|
187
|
+
start_date: Any = None,
|
|
188
|
+
end_date: Any = None,
|
|
189
|
+
source: Source = "auto",
|
|
190
|
+
fields: list[str] | None = None,
|
|
191
|
+
) -> pd.DataFrame:
|
|
192
|
+
return self.query(
|
|
193
|
+
"stock_performance_daily",
|
|
194
|
+
ts_code=ts_code,
|
|
195
|
+
trade_date=trade_date,
|
|
196
|
+
start_date=start_date,
|
|
197
|
+
end_date=end_date,
|
|
198
|
+
source=source,
|
|
199
|
+
fields=fields,
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
def stock_limit_price_daily(
|
|
203
|
+
self,
|
|
204
|
+
ts_code: str | list[str] | None = None,
|
|
205
|
+
*,
|
|
206
|
+
trade_date: Any = None,
|
|
207
|
+
start_date: Any = None,
|
|
208
|
+
end_date: Any = None,
|
|
209
|
+
source: Source = "auto",
|
|
210
|
+
fields: list[str] | None = None,
|
|
211
|
+
) -> pd.DataFrame:
|
|
212
|
+
return self.query(
|
|
213
|
+
"stock_limit_price_daily",
|
|
214
|
+
ts_code=ts_code,
|
|
215
|
+
trade_date=trade_date,
|
|
216
|
+
start_date=start_date,
|
|
217
|
+
end_date=end_date,
|
|
218
|
+
source=source,
|
|
219
|
+
fields=fields,
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
def tail_risk_signal_daily(
|
|
223
|
+
self,
|
|
224
|
+
index_code: str | None = None,
|
|
225
|
+
*,
|
|
226
|
+
trade_date: Any = None,
|
|
227
|
+
start_date: Any = None,
|
|
228
|
+
end_date: Any = None,
|
|
229
|
+
source: Source = "auto",
|
|
230
|
+
fields: list[str] | None = None,
|
|
231
|
+
) -> pd.DataFrame:
|
|
232
|
+
return self.query(
|
|
233
|
+
"tail_risk_signal_daily",
|
|
234
|
+
index_code=index_code,
|
|
235
|
+
trade_date=trade_date,
|
|
236
|
+
start_date=start_date,
|
|
237
|
+
end_date=end_date,
|
|
238
|
+
source=source,
|
|
239
|
+
fields=fields,
|
|
240
|
+
)
|
|
241
|
+
|
|
182
242
|
def index_daily(
|
|
183
243
|
self,
|
|
184
244
|
ts_code: str | list[str],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|