Skip to content

mgodf/dukascopy_forex_dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

(Unofficial) Dukascopy Forex Downloader

Unofficial Forex Data Downloader for Dukascopy API!
Explore the docs »

View Demo · Report Bug · Request Feature

Getting Started

Files:

  • main.py
  • bi5-csv.py

Prerequisites

  • Python 3
  • Do a 'pip install' for any packages that you might be missing

Installation

Just download and run!

Usage

main.py

Downloads a range of .bi5 files from Dukascopy

Step 1.) Configure

To configure, open main.py and set the ctx variables at the top of the file as follows:

  • cache_loc: Location where files will be downloaded
  • session_sym: Symbol to download (e.g. 'EURUSD')
  • session_start_date: Date to begin downloading from (e.g. for January 1st 2019: "2019-01-01")
  • session_start_hour: Hour to begin downloading (0-23)
  • session_duration_hrs: Number of hours worth of data to download (e.g. for 1 week: 24*7)

Step 2.) Run

python .\main.py

bi5-csv.py

Converts (.bi5) files to (.csv) format. --in_file can be a single file or a while directory

python .\bi5-csv.py [-h] --in_file IN_FILE [--out_file OUT_FILE]

hint: After running main.py, set --in_file to the same directory as the cache_loc variable from above.

e.g.)

If main.py was configured as:

ctx['cache_loc'] = r'C:/Users/<user_name>/FXCACHE/'

you would run:

python .\bi5-csv.py --in_file 'C:/Users/<user_name>/FXCACHE/'

Candlestick Chart icon icon by Icons8

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages