GithubHelp home page GithubHelp logo

yoyobbs / astock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harrisonxi/astock

0.0 1.0 0.0 143 KB

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

Python 100.00%

astock's Introduction

AStock

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

使用示例

python astock.py sh600000 sz000001

输出示例

输出示例

自动着色。在涨跌幅后面的值是今日振幅。之后一个值 = (现价 - 最低价) / (最高价 - 最低价),用来指示现价在今日振幅中所处的百分比位置。最后一个值的颜色表示当前委比,红色表示委比大于 20%,绿色表示委比小于 -20%。

自动补全

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

输出示例

大涨数量: 195
小涨数量: 1545
稳定数量: 188
小跌数量: 2
大跌数量: 10
平均涨幅: 3.70%
停牌数量: 354
总数量: 2294
开始时间: 10:46:01
总用时: 0.30秒

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

关于

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

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

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

astock's People

Contributors

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