Installationο
This guide will help you install the forex_data package and all its dependencies.
Prerequisitesο
Before installing forex_data, make sure you have:
Python 3.8 or higher installed on your system
Poetry package manager (recommended)
Note
Poetry is the recommended way to manage this package. If you donβt have Poetry installed, visit the Poetry documentation for installation instructions.
Installing Poetryο
To install Poetry, run:
curl -sSL https://install.python-poetry.org | python3 -
Or on Windows PowerShell:
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
Quick Installationο
Using pip or Poetry (Recommended)ο
The easiest way to install forex_data is from PyPI:
pip install forex-data-aggregator
Or using Poetry:
poetry add forex-data-aggregator
This will install the latest stable version with all dependencies.
Note
After installation, you can import the package as import forex_data
Installing from Sourceο
For Development or Latest Featuresο
If you want to contribute to development or use the latest features:
1. Clone the Repositoryο
First, clone the forex_data repository:
git clone https://github.com/nikfio/forex_data.git -b master forex-data
cd forex-data
2. Install Poetryο
Ensure you have Poetry installed:
curl -sSL https://install.python-poetry.org | python3 -
Or on Windows PowerShell:
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
3. Install Dependenciesο
Use Poetry to install the package and all its dependencies:
poetry install
This will:
Create a virtual environment
Install all required dependencies
Install the package in development mode
4. Verify Installationο
Run the test suite to ensure everything is working correctly:
poetry run pytest
If all tests pass, your installation is successful! β
Alternative: Using pip from Sourceο
You can also install directly from the source directory:
pip install -e .
Warning
Using pip directly may not ensure all dependency versions are correctly resolved. Poetry is strongly recommended for development.
Installation Optionsο
Development Installationο
For development work, install with all development dependencies:
poetry install --with dev
This includes additional tools for:
Testing (pytest)
Linting (flake8, mypy)
Documentation (sphinx)
Code formatting
Minimal Installationο
For a minimal installation with only required dependencies:
poetry install --only main
Requirementsο
The package has the following main dependencies:
Data Processing: polars, pyarrow, or pandas
HTTP Requests: requests
Logging: loguru
Configuration: PyYAML
Plotting: plotly or matplotlib
See pyproject.toml for the complete list of dependencies.
Next Stepsο
Now that you have installed forex_data, you can:
Read the Quick Start guide to start using the package
Learn about Configuration options
Explore Examples for common use cases
If you encounter any issues during installation, please check our GitHub Issues page.