Skip to main content

A Python package for downloading financial data from ex2archive

Project description

exfinance

PyPI version Python 3.11+ License: MIT

A Python package to automate downloading high-quality tick data from Exness data archives (ex2archive).

Features

  • List all available trading pairs
  • Download historical tick data for any pair and date range
  • Save data as CSV or load directly as pandas DataFrame
  • Configurable data source URL

Installation

Install from PyPI:

pip install exfinance

Or using Poetry:

poetry add exfinance

Development Installation

git clone https://github.com/alihaskar/efinance.git
cd efinance
poetry install

Usage

from exfinance import Exness
exness = Exness()
pairs = exness.get_available_pairs()
data = exness.download('EURUSD', '2023-01-01', '2023-03-01')

Downloader Optimizations

  • Downloads are now parallelized for faster multi-month fetches (uses ThreadPoolExecutor).
  • CSVs are read directly from zip files in memory if you don't specify a save path (no disk I/O).
  • Error handling is granular: network, extraction, and parsing errors are logged separately.
  • Date range validation: start date must not be after end date; monthly frequency uses last day of month.
  • Logging is always configured for consistent output.

Linting

This project uses ruff for linting:

poetry run ruff check .

License

MIT

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

exfinance-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

exfinance-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file exfinance-0.1.1.tar.gz.

File metadata

  • Download URL: exfinance-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Windows/11

File hashes

Hashes for exfinance-0.1.1.tar.gz
Algorithm Hash digest
SHA256 724b1e3fef282b5f018394b03ead71ad0bb63e6c45c646aa5229547347a0c6be
MD5 ff0ab7aef01c992e03eb56884f065bd6
BLAKE2b-256 9a2d8916b089f919642b220518fee2e66576250047052850682025c42dc035df

See more details on using hashes here.

File details

Details for the file exfinance-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: exfinance-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Windows/11

File hashes

Hashes for exfinance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43e062a1d78bbecdd6bdac98b1702296cf0431929a57030a0b9b01c042a39b87
MD5 41a2f6771896d3c3034d9323acfa8bb4
BLAKE2b-256 de1a0a1d2f5745d8c3105dc7c17b7dc6ee79ae922be3168e1f6ad9c4f5a74dfd

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