Skip to main content

dfdata

dfdata 用于下载金融数据。将数据源的数据保存到本地,默认sqlite数据库。

安装

pip install dfdata

使用

下载tushare pro 数据源为例。使用pip install tushare安装好tushare,再设置一次tushare的token,它会保存在用户目录下tk.csv。

import tushare as ts
ts.set_token('your_tushare_token')  

接下载可以使用dfdata下载和读取数据。

import dfdata as dd

# 下载期货日线行情
dd.save_futures_daily(source='tushare')

# 读取期货日线行情
dd.read_futures_daily(source='tushare')

更多使用方法见文档:http://dfdata.org/

Release files for dfdata 0.0.6

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

Source distribution (sdist)

Source distribution for dfdata 0.0.6
File Size Uploaded
dfdata-0.0.6.tar.gz 26.3 kB Details

Built distribution (wheel)

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

Total release size: 61.7 kB

Release files / dfdata-0.0.6.tar.gz

Download URL dfdata-0.0.6.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f29a63a6db096fdfa80e9149bb3e39f13c0121c03fe5900d344b9ff16f85d1f8
BLAKE2b-256 checksum
How to use checksums
a768e51c5a220dadc089619f0d503f42ba611fe7080a39416be73a9c017b94e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.10

Release files / dfdata-0.0.6-py3-none-any.whl

Download URL dfdata-0.0.6-py3-none-any.whl
Size 35.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfd4870ea762faed88b98f43950087aabae7af04f40e1596a1a1196316058d65
BLAKE2b-256 checksum
How to use checksums
028916a0518bc1b2a84599640fe0ea9cc862b153ddd0f93a53dbbceb2ffc41f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.2

2 release files

0.0.1

2 release files

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