Score
0
Watch 16 Star 25 Fork 12

bopo / mootdxPythonMIT

Clone or download
README.rst
Copy Edit Web IDE Raw Normal History
Travis CI   update commit 2018-07-28
bopo   update commit 2019-10-27
通达信数据读取接口
bopo   update commit 2020-01-08
==================
bopo   initial 2017-09-22
bopo   update commit 2019-12-23
.. image:: https://badge.fury.io/py/mootdx.svg   :target: http://badge.fury.io/py/mootdx
bopo   initial 2017-09-22
bopo   readem 2017-11-16
.. image:: https://img.shields.io/travis/bopo/mootdx.svg        :target: https://travis-ci.org/bopo/mootdx
bopo   initial 2017-09-22
bopo   readem 2017-11-16
.. image:: https://readthedocs.org/projects/mootdx/badge/?version=latest        :target: https://mootdx.readthedocs.io/en/latest/?badge=latest
bopo   initial 2017-09-22
        :alt: Documentation Status
bopo   readem 2017-11-16
.. image:: https://pyup.io/repos/github/bopo/mootdx/shield.svg     :target: https://pyup.io/repos/github/bopo/mootdx/
bopo   initial 2017-09-22
     :alt: Updates
bopo   aa 2017-09-23
* 开源协议: MIT license
bopo   readem 2017-11-16
* 在线文档: https://mootdx.readthedocs.io.
bopo   Update README.rst 2020-05-15
* 中国镜像: https://gitee.com/ibopo/mootdx
bopo   initial 2017-09-22
bopo   update commit 2020-02-18
版本更新
bopo   update commit 2020-06-11
-------
bopo   update commit 2020-02-18
bopo   Update README.rst 2020-05-15
* 修正转债数据无法获取问题
bopo   update commit 2020-03-06
* 修改获取股票数据接口(自动全部获取).* 修改指数数据接口,市场参数错误。
bopo   update commit 2020-02-18
* 修复财务数据无法下载问题.* 更新了详细的文档.* 多种线路配置方案. (配置文件, 环境变量等).
bopo   Add super awesome feature 2020-04-25
* 重写了专业财务数据接口.
bopo   update commit 2020-02-18
* 更新了最佳服务器选择问题.* 修改了 PIP 安装程序问题.* 本程序全面支持 python3.* 通达信客户端文件转换.* 通达信在线行情下载.
bopo   update commit 2019-10-27
运行环境
bopo   update commit 2020-06-11
-------
bopo   update commit 2019-10-27
* 操作系统: Windows / MacOS / Linux 都可以运行.* Python: 3.5 以及以上版本, 不支持 python2.* 依赖库: pytdx>=1.67
bopo   update commit 2018-12-21
安装方法
bopo   update commit 2020-06-11
-------
bopo   update commit 2018-12-21
bopo   update commit 2018-12-21
::
bopo   Update README.rst 2018-12-21
bopo   update readme 2019-10-27
    # PIP 自动安装方法    pip install mootdx
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # 手动下载源码安装
bopo   Add super awesome feature 2020-04-25
    git clone --depth=1 https://github.com/bopo/mootdx.git
bopo   update readme 2019-10-27
    cd mootdx    python setup.py install
bopo   update commit 2018-12-21
使用说明
bopo   update commit 2020-06-11
-------
bopo   update commit 2018-12-21
命令行工具::
bopo   Add super awesome feature 2020-04-25
bopo   update readme 2019-10-27
    mootdx --help
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    Usage: mootdx [OPTIONS] COMMAND [ARGS]...
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    Options:      -v, --verbose      --help         Show this message and exit.
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    Commands:      affair  财务文件下载&解析.      bestip  测试行情服务器.      quotes  读取股票在线行情数据.      reader  读取股票本地行情数据.
bopo   update commit 2018-12-21
使用最快的服务器
bopo   Add super awesome feature 2020-04-25
::
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # -w 参数是写入配置文件    mootdx bestip -w -v
bopo   update commit 2018-12-21
bopo   update commit 2018-12-21
通达信离线数据读取
bopo   update commit 2018-12-21
::
bopo   Update README.rst 2018-12-21
bopo   update readme 2019-10-27
    from mootdx.reader import Reader
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # market 参数 std 为标准市场(就是股票), ext 为扩展市场(期货,黄金等)    # tdxdir 是通达信的数据目录, 根据自己的情况修改
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    reader = Reader.factory(market='std', tdxdir='C:/new_tdx')
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # 读取日线数据    reader.daily(symbol='600036')    # 读取分钟数据    reader.minute(symbol='600036')    # 读取时间线数据    reader.fzline(symbol='600036')通达信线上行情读取
bopo   update commit 2018-12-21
bopo   update commit 2018-12-21
::
bopo   Update README.rst 2018-12-21
bopo   update readme 2019-10-27
    from mootdx.quotes import Quotes
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # 标准市场    client = Quotes.factory(market='std', multithread=True, heartbeat=True)
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # k 线数据
bopo   update readme file. 2020-04-08
    client.bars(symbol='600036', frequency=9, offset=10)
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # 指数
bopo   update readme file. 2020-04-08
    client.index(symbol='000001', frequency=9)
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # 分钟    client.minute(symbol='000001')
bopo   update commit 2018-12-21
通达信财务数据读取
bopo   update commit 2018-12-21
::
bopo   Update README.rst 2018-12-21
bopo   update readme 2019-10-27
    from mootdx.affair import Affair
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # 远程文件列表    files = Affair.files()
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # 下载单个    Affair.fetch(downdir='tmp', filename='gpcw19960630.zip')
bopo   update commit 2018-12-21
bopo   update readme 2019-10-27
    # 下载全部    Affair.parse(downdir='tmp')
bopo   update commit 2018-12-21
bopo   initial 2017-09-22
bopo   update commit 2020-01-08
加微信交流
bopo   initial 2017-09-22
---------
bopo   update commit 2020-01-07
.. image:: docs/img/IMG_2851.JPG
bopo   update commit 2020-06-10
        :width: 130 px
bopo   update readme 2019-11-14
        :align: left
Python
1
https://gitee.com/ibopo/mootdx.git
git@gitee.com:ibopo/mootdx.git
ibopo
mootdx
mootdx
master

Search