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

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:

If you encounter any issues during installation, please check our GitHub Issues page.