Skip to main content

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


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.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finflowdata-0.3.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file finflowdata-0.3.1.tar.gz.

File metadata

  • Download URL: finflowdata-0.3.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for finflowdata-0.3.1.tar.gz
Algorithm Hash digest
SHA256 7af2a90c1e65a3c5b2b809fc0c1317d51168188f336c88b5dfb5e3dae47ae175
MD5 044755c18018a2b904d5a2f0fec737c0
BLAKE2b-256 cfa5bd0180f7140e77a16b91f114dcd782266dc37d0f2b650b28405c239e9a47

See more details on using hashes here.

File details

Details for the file finflowdata-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: finflowdata-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for finflowdata-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b6e2a4aeed86759eb5961d9b134fd4203a7a5303b559b91ea5335fe6351ec12
MD5 46bd1f876b3e8d663e16144415015257
BLAKE2b-256 5d65799ad1253c22f42409d73ccf3abcd19394d81e5779a14c463d4ca4bdaa56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page