推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wgwang
V2EX  ›  Python

shell 看股票小程序

  •  
  •   wgwang · Jan 27, 2015 · 6278 views
    This topic created in 4129 days ago, the information mentioned may be changed or developed.

    python写的, 运行需安装requests库, 带颜色显示.

    程序: https://raw.githubusercontent.com/wgwang/quant/master/tools/sinaStock.py

    欢迎fork&pull, 一起搞个好用的工具: https://github.com/wgwang/quant

    另外还有A股相关的接口可以用?

    9 replies    2015-01-28 23:15:47 +08:00
    ob
        2
    ob  
       Jan 27, 2015
    @august 数据有多少?包括所有历史数据?
    wgwang
        3
    wgwang  
    OP
       Jan 27, 2015
    @august 搞定了, 代码在github上
    wgwang
        4
    wgwang  
    OP
       Jan 27, 2015
    @wgwang

    使用样例:

    python3 sinaStock.py sz000001 sh000001
    python3 yahooStock.py 000001.sz appl
    codepiano
        5
    codepiano  
       Jan 27, 2015
    雅虎的数据不全,一些太新的股没数据
    geeklian
        6
    geeklian  
       Jan 28, 2015
    雅虎新浪更新都太慢了=.=
    要想方设法从大智慧/同花顺这些程序里读才行。
    august
        8
    august  
       Jan 28, 2015
    @geeklian
    @wgwang
    @codepiano

    其實還可以用騰訊的,騰訊的主要是港股也能實時,雖然沒有 API.

    http://data.gtimg.cn/flashdata/hk/minute/hk00700.js
    codepiano
        9
    codepiano  
       Jan 28, 2015
    @august 目前发现的免费历史数据只有雅虎一家,不过太新的股没数据,还有人说雅虎的复权数据不对,这个没验证过,存疑
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   924 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 20:50 · PVG 04:50 · LAX 13:50 · JFK 16:50
    ♥ Do have faith in what you're doing.