Skip to main content

A Python package for downloading financial data from ex2archive

Project description

exfinance

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

Using Poetry

poetry install

Using pip

pip install git@github.com:alihaskar/efinance.git

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.0.tar.gz (4.4 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.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: exfinance-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 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.0.tar.gz
Algorithm Hash digest
SHA256 787d1b0326d0b60b7e95c48a7680feda5159d3b7cef228f291337538443742f6
MD5 0f0f52ae3e3ad901a643a18e7e8c54fb
BLAKE2b-256 0cd3bc91969b977bd3d8e03ba45a565bc40cced645e048dcdc66753ca714201e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exfinance-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 487e571d351494aeb4ec4b3137868848652d367ef5f66a7f040649b223e4d994
MD5 75227fd6d86c4d5f461519e2f68ec399
BLAKE2b-256 59b051090ba5e02571270cf7c777d7e31faae13f1cada6006079bae7e8d19ee0

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