Git Product home page Git Product logo

financecenter's Introduction

Project goal:Fetching open financing data and store in Relational Database

ZVT Original Project link: https://github.com/zvtvz/zvt

Improvement (01 Mar 2021):

  • database session decoupling
  • entity provider removed
  • database querying speed boost up
  • asyncio logic framework support (implementations requires rewrite request logic)
  • multiprocessing logic rewrite, use processes to replace pool
  • add proxy pool support
  • add baostock thrid party source support

Improvement (16 Sep 2020):

  • Switch Sql to Postgresql, which allow remote database access support, separate fetching and analysis models to two individal project(see FinanceAnalysis project for more detail).
  • Centralized http request interface,add Session and retry logic (Rxpy may be involved to rewrite request model pretty soon).
  • multiprocessing is involved to boost up request speed.
  • request progress display support.
  • auto joinquant account switching (banned)
  • log to console -> log to file.
  • US stock market data support.
  • global timezone support.
  • tiny bug fix.

For proxy use, required proxy_pool support. see: proxy_pool
For better performance, required customized jqdatasdk. see: jqdatasdk
For better performance, required customized yfinance. see: yfinance

It's suggest to run the project upon python 3.8


项目改进 (01 Mar 2021):

  • 数据库session句柄解耦
  • entity provider相关逻辑移除
  • 数据库查询逻辑优化
  • 异步框架支持 (实现需对函数进行async声明)
  • 多进程逻辑重写,使用processes替代pool
  • 增加代理池支持
  • 增加baostock三方库支持

项目改进 (16 Sep 2020):

  • 增加postgresql数据库支持,允许远程数据访问,实现微服务器数据爬虫与GPU模型训练工作站逻辑分离(见FinanceAnalysis项目)。
  • 统一http访问入口,增加Session与请求重试逻辑(后续可通过RxPy实现响应式编程的异步模式)。
  • 增加多进程数据请求逻辑,允许数据并发请求,加快数据获取。
  • 增加数据爬取进度展示。
  • 增加joinquant账号切换功能 (被封号,代码保留但注释了,Todo:Mac地址替换和ip池)。
  • 增加log信息从控制台输出改为写文件记录。
  • 增加美股数据拉取功能(分库分表)。
  • 增加不同区域股市时区功能。
  • 修正一些逻辑漏洞。

代理池请参加项目 proxy_pool
为管控界面信息输出,需要对jqdatasdk项目进行部分修改,详见:jqdatasdk
为加速数据下载体验,需要对yfinance项目进行部分修改,详见:yfinance

python3.8在多进程处理上有较大改动与提升,建议使用python 3.8版本运行本项目。

使用Docker

容器化编排执行

docker-compose stop; docker-compose rm -f ; docker-compose build --no-cache
docker-compose up -d

查看日志

docker-compose logs -f 

financecenter's People

Contributors

doncat99 avatar taoapp 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.