Giter VIP home page Giter VIP logo

stockindicatoranalyzer's Introduction

StockIndicatorAnalyzer

用BaoStock来抓取A股的数据并计算一些指标。

简书 githubpages

开发环境

IDE: visual studio code

Python 3.6

Requirements:

baostock 0.8.8 (http://baostock.com/baostock/index.php/)

pandas==0.23.4

SQLAlchemy==1.3.13

numpy==1.15.4

scipy==1.1.0

如果pip的源服务器是默认的话可能会很慢,使用淘宝的pip源

pip install -r .\requirements.txt -i https://mirrors.aliyun.com/pypi/simple

使用sqlite3作为数据库存储数据

运行

第一次运行的话,运行 run_first_time.py

之后每日更新,运行 daily_update.py,建议在每天晚上八点之后更新,因为大盘收盘后baostock也是会有一定的延迟。

计算的指标

上证的股票用上证指数计算,深证的股票用深证指数计算。(未区分基金,创业板和新三板)

当前计算的有贝塔系数,相关性系数,振幅。

年系数用251天,月系数用20天。

stockindicatoranalyzer's People

Contributors

mmdfish avatar

Stargazers

 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.