A fast and simple downloader for Dukascopy
Project description
Duka-DL
Dukascopy is known for its high-quality, tick-level historical market data, which is excellent for backtesting trading strategies. However, downloading this data for long periods is a tedious manual process of downloading, saving, and resampling individual daily files.
Duka-DL automates this entire workflow. It is a free, fast, and simple command-line tool that fetches data for each day in your specified range and consolidates it into a single, clean CSV or Parquet file, ready for analysis.
Installation
Install the package directly from PyPI:
pip install duka-dl
Usage
Using the tool is straightforward. You can specify a symbol, start date, and end date.
Download Data for a Specific Date Range
To download data for EURUSD from January 1st, 2023 to January 31st, 2023:
duka-dl EUR-USD -s 01-01-2023 -e 31-01-2023
Download From a Start Date to Present
If you provide only a start date, the tool will automatically download data up to the most recent complete day.
duka-dl EUR-USD -s 01-06-2024
Download All Available Data
To download all available historical data for a symbol (the tool will find the earliest data available):
duka-dl EUR-USD --all
Save as Parquet
For better performance and smaller file sizes, you can save the output in Parquet format using the -p or --parquet flag:
duka-dl EUR-USD --all --parquet
Download ASK Price
By default, the tool downloads BID prices. To download ASK prices, use the -m ASK flag.
duka-dl GBP-JPY -s 01-01-2024 -m ASK
Help
To see a list of all available commands and options, use the --help flag:
duka-dl --help
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file duka_dl-0.1.1.tar.gz.
File metadata
- Download URL: duka_dl-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4facec273d872da66dc1a2618805b914b5d629ec2f1236098ec5eba9f6db3a3
|
|
| MD5 |
83d5455a1ff7ef7992a6df48aa61090d
|
|
| BLAKE2b-256 |
288f7a6e299322c49df9d651fac70c5d0c7c9b46f224d24e881a840959924956
|
File details
Details for the file duka_dl-0.1.1-py3-none-any.whl.
File metadata
- Download URL: duka_dl-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
763b3e86fd04e6e6ba4edd03e378e4bd54ae9f3068420fca37e10a987cbb3db0
|
|
| MD5 |
ee8bf68d76ccbe3506e6876ab7ddc0dd
|
|
| BLAKE2b-256 |
85802cf050e451f77457836b0e14f5bd6635cf2028d263922918e2cded70f57c
|