Skip to content

Python project for analyzing Bitcoin market, on-chain, and sentiment data using public APIs and SQLite.

Notifications You must be signed in to change notification settings

Onurb29/BTC_analysis

Repository files navigation

🪙 Bitcoin Analysis Project

This project was developed independently as a personal data engineering and analytics project — combining API integration, database management, and data visualization in Python.

It collects and analyzes Bitcoin market, on-chain, and sentiment data using public APIs. All data is stored locally in an SQLite database, processed using Python, and visualized with Plotly.

image image

📊 Features

  • Fetches Bitcoin market data (price, volume, market cap) from the CoinGecko API
  • Retrieves sentiment data (Fear & Greed Index) from Alternative.me
  • Stores all data in a local SQLite database (btc_analysis.db)
  • Computes daily averages and indicators
  • Generates readable reports and interactive visualizations using Plotly

🧮 Tech Stack


⚙️ Installation

  1. Clone the repository

    git clone https://github.com/<your-username>/BTC_ANALYSIS.git
    cd BTC_ANALYSIS
  2. Install dependencies

    pip install -r requirements.txt
  3. Run the main pipeline

    python btc_data_pipeline.py

The script will automatically:

  • Create the SQLite database file (btc_analysis.db) in the project folder
  • Create tables if they don’t exist
  • Fetch and insert live data from the APIs

🧮 Viewing the Database

You can explore and query your local database visually using DB Browser for SQLite.

Steps:

  1. Open DB Browser for SQLite
  2. Go to File → Open Database… and select btc_analysis.db
  3. Use the Browse Data tab to inspect tables (btc_indicators, btc_onchain, etc.)
  4. Use the Execute SQL tab to run custom queries or test calculations

🚀 Future Improvements

  • Add on-chain metric correlation analysis (price vs. network activity)
  • Migrate SQLite to a cloud-hosted MySQL database for multi-user access
  • Build a Streamlit or Dash dashboard for real-time visualization

👤 Author

Jimmy Perron Analyst – Technical Systems | Industrial IT & Data Engineering GitHub Profile

About

Python project for analyzing Bitcoin market, on-chain, and sentiment data using public APIs and SQLite.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages