Skip to main content

FinFlow Data (FFD)

金融数据接口,兼容现有代码,改两行即可接入。

安装

pip install finflowdata

标准 Python 入口

新写 Python 脚本时,推荐使用标准入口:

from ffd import data

data.login(api_key="您的API_KEY")

result = data.query(
    function="history",
    codes="600519.SH",
    indicators="close;volume",
    start_date="2026-01-01",
    end_date="2026-06-26",
)
print(result)

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。

Metadata

Release files for finflowdata 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for finflowdata 0.3.3
File Size Uploaded Provenance Actions
finflowdata-0.3.3.tar.gz 13.3 kB Without provenance Details for finflowdata-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for finflowdata 0.3.3
File Interpreter ABI Platform Actions
finflowdata-0.3.3-py3-none-any.whl Python 3 none any Details for finflowdata-0.3.3-py3-none-any.whl

Total release size: 29.0 kB

Release files / finflowdata-0.3.3.tar.gz

Download URL finflowdata-0.3.3.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
777a5a908fff2c8d3f148bb55a3205b8291d2931c0777a7d01b17711c96992a6
BLAKE2b-256 checksum
How to use checksums
47c84916382b8a28caa688401df561fa99434eb2a85113679d6bb79896f09b13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / finflowdata-0.3.3-py3-none-any.whl

Download URL finflowdata-0.3.3-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13140d36ba1bd9a469a78568d5e02c308711647607c831a46a5e86388c5018dc
BLAKE2b-256 checksum
How to use checksums
e65347e4d55d63ae53132eb1993cd3b357f3eddb62796833cfc4f4b7f0fd902c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for finflowdata 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page