Skip to main content

FinFlow Data (FFD) - 金融数据接口,兼容 F/W 版历史脚本

Project description

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。

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.3.tar.gz (13.3 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.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for finflowdata-0.3.3.tar.gz
Algorithm Hash digest
SHA256 777a5a908fff2c8d3f148bb55a3205b8291d2931c0777a7d01b17711c96992a6
MD5 80bd539ed8508f066106376d19c8648b
BLAKE2b-256 47c84916382b8a28caa688401df561fa99434eb2a85113679d6bb79896f09b13

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for finflowdata-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 13140d36ba1bd9a469a78568d5e02c308711647607c831a46a5e86388c5018dc
MD5 f8d09c442c488f67b4e5dd3c71a455a4
BLAKE2b-256 e65347e4d55d63ae53132eb1993cd3b357f3eddb62796833cfc4f4b7f0fd902c

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