Giter Club home page Giter Club logo

ashare_median's Introduction

A股里看每日数据和每日中位的工具,现成的好像很少。所以动手用Python写了一个。

base_fun里面写了基本的函数,包括个股列表生成、个股数据下载、每日数据计算、日平均表格生成……等等。

个股列表来源于东方财富网,每日个股数据来源于网易。

默认下载500天内的数据。

运行execution.py后,文件夹会生成database文件夹。database里面三个文件夹分别放置下载、计算好的个股每日数据、指数每日数据、以及每日数据。

最后文件夹里会生成“每日中位数.csv”。表格有7列,包括日期、上证涨跌、沪深300涨跌、深证涨跌、中小板指涨跌、创业板指涨跌、当日中位。

运行速度嘛……3000多支股票,单线程下载+计算,目前一般的电脑大概要2个小时左右。

ashare_median's People

Contributors

purplefalcon 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.