Giter Site home page Giter Site logo

heall1iu / parseticfile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datochan/parseticfile

0.0 0.0 0.0 1.06 MB

通达信tic文件格式解析,本仓库是: [data 解析. tic_reader 分支](https://github.com/rainx/pytdx/issues/149) 讨论中的试验代码,数据准确性还有待确定,不具备实用价值,仅供参考。

Home Page: https://github.com/rainx/pytdx/issues/149

Go 100.00%

parseticfile's Introduction

ParseTicFile

通达信tic文件格式解析

代码是直接逆向分析出来的,没有优化(比较挫,但愿大家能看懂!),只用来说明Tic数据的文件格式。

数据的准确性我没有认真校对,应该差不多,如下图: 示例图片

命令的使用方法

Useage:
    parseticFile TickFilePath (sz|sh)stockCode
    
example:
    ParseTicFile ./data/20180302.tic sz000009

Tic文件的获取方法

分笔数据的获取方法:

  • 下载索引文件: http://www.tdx.com.cn/downit.zip
  • 解析这个压缩包中的配置文件downit5.cfg

这里面有基本面数据权息数据、日线数据、分笔数据等各种数据的下载url。

  • /products/data/data/2ktic/这里面就是旧版分笔数据文件
  • 在相对URL后面拼接yyyMMdd.zip的格式拼接下载url,比如下载2018年1月31日的分笔数据就是: http://www.tdx.com.cn/products/data/data/2ktic/20180131.zip

parseticfile's People

Contributors

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