FinFlow Data (FFD) - 金融数据接口,兼容 iFind/Wind 原生代码
Project description
FinFlow Data (FFD)
金融数据接口,兼容现有代码,改两行即可接入。
安装
pip install finflowdata
智选 F 版用户
原有代码不用改,只替换顶部两行:
# 删掉这两行:
# from iFinDPy import *
# THS_iFinDLogin("account", "password")
# 改为:
from ffd.ifind_compat import *
THS_iFinDLogin(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 版用户
# 删掉这两行:
# from WindPy import w
# w.start()
# 改为:
from ffd.wind_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
Release history Release notifications | RSS feed
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.0.tar.gz
(11.2 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.0.tar.gz.
File metadata
- Download URL: finflowdata-0.3.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43ebb952efb8965f69f10e6eb23d772e6d7548e530e7c68aa5818507d7610d33
|
|
| MD5 |
057328d906edbec14091cd1de052331c
|
|
| BLAKE2b-256 |
00653ef0244588e7c2820bbfaf101af9c462ad0280a1bc378892e133d499a8e2
|
File details
Details for the file finflowdata-0.3.0-py3-none-any.whl.
File metadata
- Download URL: finflowdata-0.3.0-py3-none-any.whl
- Upload date:
- Size: 12.8 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 |
3221d80422dd07731a9f9f7fc698f41b088910b719128bebf5736d9be74908d3
|
|
| MD5 |
c07f81345967ec94191498564d842ba4
|
|
| BLAKE2b-256 |
706a33c5dfa9bb9e76206e76684383e86f327deeea40a61d2507b5c74504a78e
|