Spaces:
Sleeping

kryptrix / README.md
Fahad Shah
Update README.md
fe0866b unverified
|
Raw History Blame Contribute Delete
2.44 kB

A newer version of the Streamlit SDK is available: 1.68.0

Upgrade
metadata
title: Kryptrix
emoji: πŸ’Ή
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: 1.49.1
app_file: app.py
pinned: false

Kryptrix πŸ’Ή

Python Streamlit License


Overview

Kryptrix is a real-time cryptocurrency analytics and simulation platform, designed for both Centralized (CEX) and Decentralized (DEX) exchanges. It provides:

  • βœ… Real-time Trading Analytics: Fetches live prices from Binance, CoinGecko, and optionally Uniswap. Computes indicators: SMA10/30, EMA, RSI14, VWAP24h, realized volatility. Detects arbitrage opportunities between CEX and DEX. Detects anomalies: volume spikes, price jumps, z-score deviations.

  • βœ… Feature Simulation (A/B Testing): Models the impact of changing fees, latency, or UI conversion. Shows baseline vs simulated revenue, delta, and actionable recommendations.

  • βœ… KPI Dashboard: Visualizes Last Price, 24h Volume, VWAP, Active Arbitrage, API Health, Anomalies. Interactive charts and tables powered by Plotly.

  • βœ… Stakeholder Requests & Reporting: Input portal for stakeholder questions. Generates PDF reports with KPIs, top arbitrage opportunities, anomalies, and charts.


Getting Started

Run Locally

git clone https://github.com/1FahadShah/kryptrix.git
cd kryptrix
python -m venv venv
source venv/bin/activate  # Mac/Linux
# .\venv\Scripts\activate  # Windows
pip install -r requirements.txt
streamlit run app.py

Hugging Face Space

Visit the live demo: kryptrix.1fahadshah.com

Project Structure

kryptrix/
β”œβ”€β”€ core/ # Backend logic and analytics
β”œβ”€β”€ dashboard/ # Streamlit UI pages
β”œβ”€β”€ database/ # SQLite setup and migrations
β”œβ”€β”€ scripts/ # Helper scripts like seed_db.py
β”œβ”€β”€ tests/ # Unit tests
β”œβ”€β”€ app.py # Streamlit entrypoint
β”œβ”€β”€ config.py # API endpoints and thresholds
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ Dockerfile
└── README.md

Deployment

  • Hugging Face Space: Auto-deploy via GitHub Actions.
  • Local Development: Use streamlit run app.py.
  • Docker: docker build -t kryptrix . && docker run -p 8501:8501 kryptrix

License

This project is licensed under the MIT License