Skip to content

A collection of Python scripts for fetching, cleaning, and analyzing financial data from various APIs. Focus on crypto and stock market data.

Notifications You must be signed in to change notification settings

learnonlye/python-financial-data-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Python Financial Data Toolkit

License: MIT

A collection of Python scripts designed for fetching, cleaning, and analyzing financial data from various sources, with an initial focus on cryptocurrency and stock market APIs.


🎯 Project Goals

  • Data Acquisition: Provide robust and easy-to-use scripts for fetching historical and real-time financial data (OHLCV, trades, etc.).
  • Modularity: Create reusable functions and classes for common data processing tasks.
  • Extensibility: Allow easy integration with different data sources (exchanges, financial APIs) and analysis libraries.
  • Reliability: Implement proper error handling, rate limiting considerations, and data validation.

✨ Features (Current)

  • Historical OHLCV Fetcher (fetch_data.py):
    • Fetches historical Open, High, Low, Close, Volume (OHLCV) data for cryptocurrencies.
    • Uses the powerful ccxt library to support hundreds of exchanges (defaults to Binance).
    • Handles fetching in batches for large historical data requests.
    • Includes basic rate limit awareness (enableRateLimit).
    • Supports various timeframes (e.g., 1m, 5m, 1h, 1d).
    • Allows fetching data from a specific start date or just the most recent candles.
    • Command-line interface for easy execution.
    • Option to save fetched data to a CSV file.

🛠️ Setup

  1. Clone the Repository:

    git clone [https://github.com/learnonlye/python-financial-data-toolkit.git](https://github.com/learnonlye/python-financial-data-toolkit.git)
    cd python-financial-data-toolkit
  2. Create a Virtual Environment (Recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install Dependencies:

    pip install -r requirements.txt

▶️ Usage Example (fetch_data.py)

The fetch_data.py script can be run from your terminal.

Command Structure:

python fetch_data.py <SYMBOL> [options]

About

A collection of Python scripts for fetching, cleaning, and analyzing financial data from various APIs. Focus on crypto and stock market data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages