Coder Social home page Coder Social logo

astock's Introduction

AStock

A python script to monitor Chinese stocks in terminal. 一个在终端监视 A 股的 python 脚本。

使用示例

python astock.py sh600000 sz000001

输出示例

输出示例

在涨跌幅后面的值是今日振幅。

后一个整数值 = (现价 - 最低价) / (最高价 - 最低价),用来指示现价在今日振幅中所处的百分比位置。

最后的加号表示委比里委买多于委卖的数量,加号越多则委买的比例越高,最多 5 个加号。减号的意义可以类推。

自动补全

6 字头股票代码脚本会自动补 sh 前缀

0 字头股票代码脚本会自动补 sz 前缀

3 字头股票代码脚本会自动补 sz 前缀

python astock.py 600000 000001

等于

python astock.py sh600000 sz000001

特殊代码

sh: 上证指数

sz: 深证指数

zx: 中小板指

cy: 创业板指

300: 沪深300

python astock.py sh sz

等于

python astock.py sh000001 sz399001

统计脚本

python ahealth.py

输出示例

输出示例

不包含创业板股票,有需要的请自行添加。

关于

数据来源于新浪财经,代码库里有整理好的 API 文档。

如果有兴趣用 python 做真正的数据分析,可以去参考TuShare开源库,前往TuShare主页

仅在 Mac 的 python 2.7 环境下使用过,对其它平台的兼容没有测试过。

astock's People

Contributors

harrisonxi avatar poprlz avatar

Watchers

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