Skip to main content

Package to download historical data from Darwinex with different data format.

The dowload of data from Darwinex is performed via FTP, in each file there is information of each operation performed in the ticker. This package allows you to download the data in ohlc format ready for analysis with python with different periodicity.

Table of Contents

Requirements

The following libraries are required before installing darwinexDownloader:

  • Python 3.7+
  • ftplib
  • tempfile
  • gzip
  • pandas
  • datetime
  • os

Installation

The instructions to install this package are in the header of the (DarwinexDownloader pypi website)[https://test.pypi.org/project/darwinexDownloader/]

Documentation and Tutorials

Once you have installed the library you have to import it in the source code:

import DarwinexDownloader

This the library in your code, you can use darwinexDownloader to connect with Darwinex:

dwnx = DarwinexDownloader.Connection('your_user', 'your_password') # clase

At this time, we are ready to download the data:

data = dwnx.download('EURUSD', "28-06-2022", "29-06-2022", '15Min')

Now in the 'data' variable we have the ohlc data ready to make our analysis.

|         Date        |  open   |  high   |   low   |  close  |    volume   |
|---------------------|---------|---------|---------|---------|-------------| 
| 2022-06-28 00:00:00 | 1.05797 | 1.05850 | 1.05789 | 1.05810 | 952330000.0 |
| 2022-06-28 00:15:00 | 1.05812 | 1.05852 | 1.05807 | 1.05825 | 549950000.0 |
| 2022-06-28 00:30:00 | 1.05824 | 1.05853 | 1.05773 | 1.05779 | 503900000.0 |
|         ...         |   ...   |   ...   |   ...   |   ...   |     ...     |
| 2022-06-29 23:30:00 | 1.04417 | 1.04463 | 1.04411 | 1.04457 | 471505000.0 |
| 2022-06-29 23:45:00 | 1.04458 | 1.04463 | 1.04444 | 1.04456 | 239250000.0 |

In the download method we have 4 arguments.

The first one is the ticker. The valid tickers are show in the Darwinex website

The second and third arguments are dates. For the moment, date format must always be as follows: "dd-mm-yyyy" where the first date is the start date and the second is the end date.

And the 4th argument is the frecuency. This frecuency has the format used by pandas timeframes where the most used in trading can be:

  • '1Min'
  • '5Min'
  • '15Min'
  • '30Min'
  • '1H'
  • '4H'
  • '1D'
  • 'Week'
  • 'Month'

Questions, Suggestions and Bugs

Feel free to open an issue here.

Contributing / Development

Contributions welcome.

License

MIT License. Iván García-Ferreira

Metadata

Release files for darwinexDownloader 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for darwinexDownloader 0.0.3
File Size Uploaded
darwinexDownloader-0.0.3.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for darwinexDownloader 0.0.3
File Interpreter ABI Platform
darwinexDownloader-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / darwinexDownloader-0.0.3.tar.gz

Download URL darwinexDownloader-0.0.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
54aa9ecce7defce2a88ba2e022f9d5b5c57085be7041303414810d53cbe46a62
BLAKE2b-256 checksum
How to use checksums
c8127ea80c5e27437af8333654fb741c4ec21a3929e417f4b5659dc236921df4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.13

Release files / darwinexDownloader-0.0.3-py3-none-any.whl

Download URL darwinexDownloader-0.0.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
663b9afeec3ef11a65bf82a29175b234eabe53d56b55cfa2b74a15fd7cb4c37a
BLAKE2b-256 checksum
How to use checksums
88e65455f27142bbe52ef2e0aa734e884936ca78883b860dcfdbb3eced748555
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page