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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file dfdata-0.0.6.tar.gz.

File metadata

  • Download URL: dfdata-0.0.6.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.10

File hashes

Hashes for dfdata-0.0.6.tar.gz
Algorithm Hash digest
SHA256 f29a63a6db096fdfa80e9149bb3e39f13c0121c03fe5900d344b9ff16f85d1f8
MD5 53f22015b02a82ad6cb468e8d963aa03
BLAKE2b-256 a768e51c5a220dadc089619f0d503f42ba611fe7080a39416be73a9c017b94e3

See more details on using hashes here.

File details

Details for the file dfdata-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: dfdata-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.10

File hashes

Hashes for dfdata-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dfd4870ea762faed88b98f43950087aabae7af04f40e1596a1a1196316058d65
MD5 608aec5070b52ff9e2a75ccff4ef1adc
BLAKE2b-256 028916a0518bc1b2a84599640fe0ea9cc862b153ddd0f93a53dbbceb2ffc41f3

See more details on using hashes here.

Supported by

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