bopo / Mootdx
Licence: mit
通达信数据读取接口
Stars: ✭ 188
Programming Languages
Labels
Projects that are alternatives of or similar to Mootdx
Rqalpha Mod Fxdayu Source
rqalpha拓展数据和事件源,支持分钟级别回测,实时交易,支持quantos数据源
Stars: ✭ 83 (-55.85%)
Mutual labels: quant
Friartuck
Live Quant Trading Framework for Robinhood, using IEX Trading and AlphaVantage for Free Prices.
Stars: ✭ 142 (-24.47%)
Mutual labels: quant
Crex
A Golang cryptocurrency trading API & Library. Support Binance, BitMEX, Deribit, Bybit, Huobi DM, OKEX Futures and more.
Stars: ✭ 166 (-11.7%)
Mutual labels: quant
Auquan Toolbox Python
Backtesting toolbox for trading strategies - DEPRECATED
Stars: ✭ 108 (-42.55%)
Mutual labels: quant
Financial Machine Learning
A curated list of practical financial machine learning tools and applications.
Stars: ✭ 2,172 (+1055.32%)
Mutual labels: quant
Bursatil Argentina Python
Guia de ejemplos didácticos en python temática finanzas bolsa trading argentina usa
Stars: ✭ 153 (-18.62%)
Mutual labels: quant
Qlib Server
Qlib-Server is the data server system for Qlib. It enable Qlib to run in online mode. Under online mode, the data will be deployed as a shared data service. The data and their cache will be shared by all the clients. The data retrieval performance is expected to be improved due to a higher rate of cache hits. It will consume less disk space, too.
Stars: ✭ 81 (-56.91%)
Mutual labels: quant
Quant Notes
Quantitative Interview Preparation Guide, updated version here ==>
Stars: ✭ 180 (-4.26%)
Mutual labels: quant
Quant Trading
Python quantitative trading strategies including VIX Calculator, Pattern Recognition, Commodity Trading Advisor, Monte Carlo, Options Straddle, Shooting Star, London Breakout, Heikin-Ashi, Pair Trading, RSI, Bollinger Bands, Parabolic SAR, Dual Thrust, Awesome, MACD
Stars: ✭ 2,407 (+1180.32%)
Mutual labels: quant
Ml Interview
Resources I used for ML Engineer, Applied Scientist and Quant Researcher interviews.
Stars: ✭ 161 (-14.36%)
Mutual labels: quant
Py Market Profile
A library to calculate Market Profile (aka Volume Profile) for financial data from a Pandas DataFrame.
Stars: ✭ 153 (-18.62%)
Mutual labels: quant
Thenextquant
Asynchronous driven quantitative trading framework.
Stars: ✭ 172 (-8.51%)
Mutual labels: quant
Aioquant
Asynchronous event I/O driven quantitative trading framework.
Stars: ✭ 188 (+0%)
Mutual labels: quant
Fushare
A utility for fundamentals data of China commodity futures
Stars: ✭ 176 (-6.38%)
Mutual labels: quant
Squant
SQuant是使用scala语言编写的量化开发工具箱,提供开箱即用的A股股票数据和外汇数据(docker镜像),以及高效的回测框架与交易模块。方便Java/Scala爱好者进行量化投资研究。 QQ群:281599099,微信公众号:Python量化交易实战。对,我已经转python了。。。
Stars: ✭ 155 (-17.55%)
Mutual labels: quant
通达信数据读取接口
.. image:: https://badge.fury.io/py/mootdx.svg :target: http://badge.fury.io/py/mootdx
.. image:: https://img.shields.io/travis/bopo/mootdx.svg :target: https://travis-ci.org/bopo/mootdx
.. image:: https://readthedocs.org/projects/mootdx/badge/?version=latest :target: https://mootdx.readthedocs.io/zh/latest/?badge=latest :alt: Documentation Status
.. image:: https://pyup.io/repos/github/bopo/mootdx/shield.svg :target: https://pyup.io/repos/github/bopo/mootdx/ :alt: Updates
- 开源协议: MIT license
- 在线文档: https://mootdx.readthedocs.io.
- 中国镜像: https://gitee.com/ibopo/mootdx
版本更新
- 把 pytdx 代码合并至项目里.
- 可转债历史数据获取识别(添加113开头).
- 修正转债数据无法获取问题.
- 修改获取股票数据接口(自动全部获取).
- 修改指数数据接口,市场参数错误。
- 修复财务数据无法下载问题.
- 更新了详细的文档.
- 多种线路配置方案. (配置文件, 环境变量等).
- 重写了专业财务数据接口.
- 更新了最佳服务器选择问题.
- 修改了 PIP 安装程序问题.
- 本程序全面支持 python3.
- 通达信客户端文件转换.
- 通达信在线行情下载.
运行环境
- 操作系统: Windows / MacOS / Linux 都可以运行.
- Python: 3.5 以及以上版本, 不支持 python2.
- 依赖库: pytdx>=1.67
安装方法
::
# PIP 自动安装方法
pip install mootdx
# 手动下载源码安装
git clone --depth=1 https://github.com/bopo/mootdx.git
cd mootdx
python setup.py install
使用说明
命令行工具
::
mootdx --help
Usage: mootdx [OPTIONS] COMMAND [ARGS]...
Options:
-v, --verbose
--help Show this message and exit.
Commands:
affair 财务文件下载&解析.
bestip 测试行情服务器.
quotes 读取股票在线行情数据.
reader 读取股票本地行情数据.
使用最快的服务器
::
# -w 参数是写入配置文件
mootdx bestip -w -v
通达信离线数据读取
::
from mootdx.reader import Reader
# market 参数 std 为标准市场(就是股票), ext 为扩展市场(期货,黄金等)
# tdxdir 是通达信的数据目录, 根据自己的情况修改
reader = Reader.factory(market='std', tdxdir='C:/new_tdx')
# 读取日线数据
reader.daily(symbol='600036')
# 读取分钟数据
reader.minute(symbol='600036')
# 读取时间线数据
reader.fzline(symbol='600036')
通达信线上行情读取
::
from mootdx.quotes import Quotes
# 标准市场
client = Quotes.factory(market='std', multithread=True, heartbeat=True)
# k 线数据
client.bars(symbol='600036', frequency=9, offset=10)
# 指数
client.index(symbol='000001', frequency=9)
# 分钟
client.minute(symbol='000001')
通达信财务数据读取
::
from mootdx.affair import Affair
# 远程文件列表
files = Affair.files()
# 下载单个
Affair.fetch(downdir='tmp', filename='gpcw19960630.zip')
# 下载全部
Affair.parse(downdir='tmp')
加微信交流
.. image:: docs/img/IMG_2851.JPG :width: 130 px :align: left
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].