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
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
Metadata
Release files for exfinance 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| exfinance-0.1.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| exfinance-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / exfinance-0.1.1.tar.gz
| Download URL | exfinance-0.1.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
724b1e3fef282b5f018394b03ead71ad0bb63e6c45c646aa5229547347a0c6be
|
|
BLAKE2b-256 checksum How to use checksums |
9a2d8916b089f919642b220518fee2e66576250047052850682025c42dc035df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Windows/11
|
Release files / exfinance-0.1.1-py3-none-any.whl
| Download URL | exfinance-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43e062a1d78bbecdd6bdac98b1702296cf0431929a57030a0b9b01c042a39b87
|
|
BLAKE2b-256 checksum How to use checksums |
de1a0a1d2f5745d8c3105dc7c17b7dc6ee79ae922be3168e1f6ad9c4f5a74dfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Windows/11
|