Skip to main content

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 EURUSD -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 AUDUSD -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 EURUSD --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 EURUSD --all --parquet

Download ASK Price

By default, the tool downloads BID prices. To download ASK prices, use the -m ASK flag.

duka-dl GBPJPY -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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

duka_dl-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

duka_dl-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file duka_dl-0.1.0.tar.gz.

File metadata

  • Download URL: duka_dl-0.1.0.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

Hashes for duka_dl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fb98cf2e3881b520edf547f42f23cc92800845deb83276093dc93af9854d6f6e
MD5 6e4b1743bd6b272d81ccfe2ce911e6d0
BLAKE2b-256 67f5643224d301bc6e1b20d16e41ea6f763f60cbddace1ce7cd9b116dfe60088

See more details on using hashes here.

File details

Details for the file duka_dl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: duka_dl-0.1.0-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

Hashes for duka_dl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b20e4f063d6ae46cf6ba0872edc56384fdf0d7e2c436c0a560fbe49ec24b3a92
MD5 6a1458095374d610478b03552d646732
BLAKE2b-256 21e6097a5598e55ae5bb23c0edfa89e3b23017afd0e5fac3b2811e74055f9936

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page