anattapol / metastock-data-convert

Load metastock data from AWS CDCDL server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Author: mech

Python utility that reads Metastock data files and save the quotations in text files. Full article is available here: http://themech.net/2008/08/reading-metastock-files/

ms2csv.py

This script converts data from metastock format to CSV.

Input directory must contain metastock data EMASTER/XMASTER.

Usage

Listing the symbols in Metastock data:

python ms2csv.py --list

Extracting all quotes:

python ms2csv.py --all -d <path-to-ms-dir> -o <path-to-csv-dir>

More help:

python ms2csv.py --help

rdsupload.py

This script upload all CSV from input directory to MySQL server. Input directory should contains substructure like the following diagram

πŸ“ csv-dir
β”œβ”€β”€ πŸ“ market1-dir
β”‚   β”œβ”€β”€ πŸ“ƒ symbol-1.TXT
β”‚   β”œβ”€β”€ πŸ“ƒ symbol-2.TXT
β”‚   ...
β”‚   └── πŸ“ƒ symbol-n.TXT
...

Require Modules

  • pymysql

Usage

Listing the symbols in Metastock data:

python rdsupload.py -d <path-to-csv-dir>

About

Load metastock data from AWS CDCDL server

License:GNU General Public License v3.0


Languages

Language:Python 99.2%Language:Shell 0.8%