Skip to main content

'QuantStream' is a Python library for financial data analysis and visualization.

Project description

QuantStream

QuantStream is a Python-based financial modeling platform designed to interact with real-time financial data via APIs, including the Financial Modeling Prep (FMP) API. The platform provides tools for model training, real-time data integration, and visualization.

Features

  • API Wrapper: Integration with the FMP API for fetching financial data.
  • Model Training: Train models using financial data directly within the platform.
  • Real-time Visualization: Display and interact with real-time financial data.
  • Data Export: Download financial data in various formats such as CSV.
  • Extensible Architecture: Easily add new models or financial data providers.

Installation

Requirements

  • Python 3.11 or higher
  • uv package for environment and dependency management
  • ruff for linting

Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/quantstream.git
    cd quantstream
    
  2. Install uv and sync dependencies:

    curl -sSL https://install.astral.sh | sh
    uv sync --all-extras --dev
    
  3. Set up the environment variable for your API key:

    export FMP_API_KEY=your_api_key_here
    
  4. Run the application:

    uv run python -m quantstream
    

Usage

Train a Model

uv run python -m quantstream.train_model --symbol AAPL --model linear

This command trains a linear model for Apple Inc. using real-time financial data.

Get Real-Time Data

uv run python -m quantstream.fetch_data --symbol AAPL

Fetches the latest financial data for Apple Inc. from the FMP API.

Visualize Data

The platform comes with visualization tools for real-time financial data. You can run the visualization module using:

uv run python -m quantstream.visualize --symbol AAPL

Development Workflow

Code Style and Linting

We use ruff for code linting. You can check for any style issues by running:

uv run ruff check .

Running Tests

Tests are managed using pytest. You can run all tests with:

uv run pytest tests/

Pre-commit Hooks

This project uses pre-commit hooks to enforce code quality. Install the hooks by running:

pre-commit install

Contributing

We welcome contributions! Please see the CONTRIBUTING.md file for guidelines.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

quantstream-0.0.3rc0.tar.gz (626.9 kB view details)

Uploaded Source

Built Distribution

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

quantstream-0.0.3rc0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file quantstream-0.0.3rc0.tar.gz.

File metadata

  • Download URL: quantstream-0.0.3rc0.tar.gz
  • Upload date:
  • Size: 626.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for quantstream-0.0.3rc0.tar.gz
Algorithm Hash digest
SHA256 1e03275b13643244fb2c70c5dcc486b543968f412a37d9c917c3c22901c5f220
MD5 e05b9c842a109bfa5eecb1103594d03f
BLAKE2b-256 8cc4495c94b69ac86b3e99ed2ce4d84b58df37ac62da4141ecf326f10195ffba

See more details on using hashes here.

File details

Details for the file quantstream-0.0.3rc0-py3-none-any.whl.

File metadata

  • Download URL: quantstream-0.0.3rc0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for quantstream-0.0.3rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 d88e6f4471957676c88fd9163421b5ef5d10ff9c9a53268791b46aa9271572f1
MD5 8661dbf5e6aad1ba4fb52b00cb1d7495
BLAKE2b-256 ea22c043acc10fa0f5cc3c012e9c8c0932a5f41c6ce1ac8ed48f1ad084ea3b76

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