GithubHelp home page GithubHelp logo

financial_data_pools's Introduction

data_pools 通过代码获取金融数据(持续更新中)

目前能够获取的金融数据包括:

代码需要的运行环境:

  • Python3,本机的Python版本为3.7.9,下载地址
  • redis,代码使用了redis作为队列临时存储数据,下载地址
  • MySQL,作为数据存储,下载地址
  • Python的第三方包,包括pandas,pymysql等,详情参照requirements.txt文件及安装依赖
安装依赖:
pip3 install -r requirements.txt
数据库配置
  • window环境配置文件名为conf.ini
  • linux环境配置文件名为conf.cnf
  • 包括MySQL和redis配置
列出的配置中只需要将对应的配置值改成自己的,注意:redis如果没有密码,password项不需要填写
[mysql]
host = 127.0.0.1
port = 3306
user = root
password = root
database = stock
charset = utf8mb4

[redis]
host = localhost
port = 6379
queue_db = 1
password = 

代码的文件及说明

  • create_tables 文件夹,里面放的是数据库建表语句,导入或者当个执行建表
  • __init __.py,包初始化文件,不需要改动
  • data_urls.py,数据接口链接地址
  • conf.ini,配置文件地址
  • comm_funcs.py,公用的方法/类库
  • balancesheets_down.py,资产负债表下载文件,里面附有示例
  • cashflow_down.py,现金流量表下载文件,附有使用示例
  • financial_down.py,利润表下载文件,附有使用示例
  • statements_down.py,业绩报表下载文件,附有使用示例
  • suspended_down.py,停复牌信息下载文件,附有使用示例
  • unlocked_down.py,解禁个股信息下载文件,附有使用示例

问题反馈

任何问题欢迎在[Issues]中反馈,或者添加微信:hi-huangsir ; QQ:1762934298

你的反馈会让此项目变得更加完美。

financial_data_pools's People

Contributors

huangsir250 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.