FinFlow Data (FFD) - 金融数据接口,兼容 F/W 版历史脚本
Project description
FinFlow Data (FFD)
金融数据接口,兼容现有代码,改两行即可接入。
安装
pip install finflowdata
F 版历史脚本
原有代码不用改,只替换顶部两行:
# 改成 FFD:
from ffd.f_compat import *
FFDLogin(api_key="您的API_KEY")
# 以下代码完全不用改
data = THS_DS("600519.SH", "ths_close_price_stock", "", "Days:Tradedays,Fill:Previous", "2026-01-01", "2026-04-01")
print(data)
W 版历史脚本
# 改成 FFD:
from ffd.w_compat import w
w.start(api_key="您的API_KEY")
# 以下代码完全不用改
data = w.wsd("600519.SH", "close,open,high,low,volume", "2026-01-01", "2026-04-01", "")
print(data.Data)
SDK 统一接口(可选)
从零开始写新代码时使用:
from ffd_sdk import FFDClient
client = FFDClient("您的API_KEY")
df = client.daily("600519.SH", "close,open", "2026-01-01", "2026-04-01")
print(df)
获取 API Key
访问 https://ffd.findesk.cn 注册并创建 Key。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
finflowdata-0.3.2.tar.gz
(12.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file finflowdata-0.3.2.tar.gz.
File metadata
- Download URL: finflowdata-0.3.2.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ae79395f77ca4dd4fcf8ba42b8d689768130dcade180971b9583b06e2ca1c4a
|
|
| MD5 |
47e7295839ae931ff37421813c043b7e
|
|
| BLAKE2b-256 |
ab63190d705048b96206b20b74cf488c89fd533952df88f32a36bb123e9d54b4
|
File details
Details for the file finflowdata-0.3.2-py3-none-any.whl.
File metadata
- Download URL: finflowdata-0.3.2-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3e82bf46946a094068d25d228b93e8fc4755321410220f94b20bf1a3e149613
|
|
| MD5 |
f65585b96d323ff563d9e38793fbad8b
|
|
| BLAKE2b-256 |
3858c05160ad822c6e159d74b45d4ef28bc85da8bbbc506fc88b7b076f8510ad
|