Skip to main content

TBD

Project description

isbtchot: BTC Hotness Index Dashboard

The isbtchot package provides a minimalist terminal dashboard for BTC's hotness index. It uses historical BTC data to create both BTC's price and Hotness Index visualizations right in your terminal.

Demo

BTC Hotness Index Dashboard Demo

Features:

  • BTC monthly candlestick plot with log scale.
  • Hotness index based on PI with buy/sell signals.
  • Data is cached to speed up subsequent requests.

Installation

pip install isbtchot

Usage

You can run the main dashboard with:

python -m isbtchot [year]

Where year is an optional argument to specify the number of years of data you want to visualize. By default, it uses 7 years of data.

Command Line Arguments

Argument Type Description Default
year int The year to be processed. Determines the duration for data visualization. 7

Implementation Details

Directories and Files

  • init.py: Contains root path to support relative paths in other modules.
  • main.py: Main script to parse command-line arguments and invoke the dashboard.
  • controller.py: The controller module orchestrates data retrieval and visualization.
  • model.py: Manages data retrieval from CryptoCompare API and data processing.
  • view.py: Handles all the terminal-based visualizations using plotext package.

BTC PI Calculation

The PI is based on the moving averages of BTC's daily price. Here's a brief overview:

  • SMA111: 111-day Simple Moving Average of the price.
  • SMA350x2: Double the 350-day Simple Moving Average of the price.
  • PI: SMA111 / SMA350x2.

Sell and buy signals are determined based on the PI values:

  • Sell Signal: When PI shifts from being >=1 to <1.
  • Buy Signal: When PI shifts from being <=0.35 to >0.35.

Dependencies

  • plotext: For terminal-based plots.
  • pandas: For data manipulation.
  • numpy: Mathematical operations.
  • requests: To fetch BTC historical data.

Notes

  • Ensure the terminal window is maximized for optimal visualization.
  • Data is fetched from CryptoCompare API and cached locally for performance.

Contributions

Please raise an issue or provide a pull request for any enhancements, bug fixes or features you'd like to add.

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

isbtchot-1.0.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

isbtchot-1.0.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file isbtchot-1.0.1.tar.gz.

File metadata

  • Download URL: isbtchot-1.0.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for isbtchot-1.0.1.tar.gz
Algorithm Hash digest
SHA256 374044db4159f9cdc84ca2d0cf29e412e1b4f5f83f70eb2519f9961615cb0f2c
MD5 8878b4566e8ba67945bc8ec3a0bcf56a
BLAKE2b-256 a8714daa573ddd6a63b8dcdb46e3fcfbcdc9a5b54dea185f7c17eb752540020b

See more details on using hashes here.

File details

Details for the file isbtchot-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: isbtchot-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for isbtchot-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a9b2d46e8aba401c3591c5eeff871e446b56a5782fd07d28cd3d46a47bd9ebb
MD5 9d2f1be5792d2e85e8517d6e4b039f41
BLAKE2b-256 48754f11db1378bbb63b2b47d3fc1778cae922a2b7856e6cbe61b59fdef0ecd8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page