Skip to main content

下载金融数据

Project description

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/

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

dfdata-0.0.6.tar.gz (26.3 kB view hashes)

Uploaded Source

Built Distribution

dfdata-0.0.6-py3-none-any.whl (35.4 kB view hashes)

Uploaded Python 3

Supported by

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