Skip to content

Crypto-Finance/CryptoScope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CryptoScope πŸ”

Multi-exchange crypto intelligence platform with real-time streaming, screening, and analytics.

Quick Start

git clone https://github.com/HanSoBored/CryptoScope
cd CryptoScope
cp .env.example .env
docker compose up -d

Access:

⚠️ Notice: CLI/TUI interface has been deprecated. Use the web API and frontend instead.

Features

  • βœ… Price Screener β€” Filter symbols by price change %, volume, and contract type
  • βœ… Database Caching β€” Daily open prices cached in SQLite for fast queries
  • βœ… K-line Mode β€” Accurate 00:00 UTC daily open for price calculations
  • βœ… Multi-Exchange β€” Modular architecture for easy exchange integration
  • βœ… Web UI β€” Modern Next.js frontend with real-time updates
  • βœ… Authentication β€” JWT-based auth with Argon2id password hashing
  • βœ… MCP Server β€” AI agent integration via Model Context Protocol
  • βœ… Security β€” Parameter validation, JWT nbf claims, path traversal prevention
  • βœ… Docker Support β€” Production and development Docker Compose setups
  • βœ… Fast Execution β€” Sub-3-second fetch for all symbols

Installation

# Build from source
git clone https://github.com/HanSoBored/CryptoScope
cd CryptoScope
cargo build --release

Prerequisites: Rust 1.88+, Node.js 20+, Linux: sudo apt-get install -y pkg-config libssl-dev

Documentation

Guide Description
πŸ“– Deployment Guide Docker setup, production deployment, troubleshooting
πŸ’» Development Guide Local dev setup, hot reload, code quality
πŸ“‘ API Reference REST API endpoints, authentication, examples
βš™οΈ Configuration Environment variables, security settings
πŸ€– MCP Server AI agent integration (Claude, Cursor, etc.)

Current Status

Supported: Bybit V5 (linear + inverse perpetual/futures)

Planned: Binance Futures, OKX Derivatives, cross-exchange symbol comparison

Project Structure

CryptoScope/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ api/              # REST API endpoints (Axum)
β”‚   β”œβ”€β”€ core/
β”‚   β”‚   β”œβ”€β”€ exchange/     # Exchange integrations (Bybit, etc.)
β”‚   β”‚   β”œβ”€β”€ screener/     # Price screening logic
β”‚   β”‚   β”œβ”€β”€ db/           # Database repository
β”‚   β”‚   └── security.rs   # Parameter validation, path safety
β”‚   β”œβ”€β”€ mcp/
β”‚   β”‚   β”œβ”€β”€ mod.rs        # MCP server implementation
β”‚   β”‚   β”œβ”€β”€ client.rs     # HTTP client for API
β”‚   β”‚   └── types.rs      # MCP parameter types
β”‚   └── bin/
β”‚       └── mcp-server.rs # MCP server binary
β”œβ”€β”€ frontend/             # Next.js web application
β”œβ”€β”€ docs/                 # Documentation
β”œβ”€β”€ data/                 # SQLite database (gitignored)
└── docker-compose.yml

Configuration

Required: JWT_SECRET, ADMIN_USER, ADMIN_PASS_HASH, CORS_ORIGINS, RUST_ENV

See Configuration Guide for all environment variables and options.

MCP Server (AI Integration)

CryptoScope provides an MCP server for AI agents to interact with market data:

# Run MCP server
cargo run --bin mcp-server

# Configure in Claude Desktop or Cursor
# See docs/mcp/README.md for setup instructions

Available Tools:

  • get_exchanges β€” List supported exchanges
  • get_symbols β€” Fetch trading symbols
  • run_screener β€” Price screening with filters
  • get_stats β€” Cache statistics
  • login β€” JWT authentication
  • refresh_cache β€” Manual cache refresh (protected)

Contributing

Contributions welcome! Please feel free to submit a Pull Request.

License

GNU General Public License v3.0 (GPL-3.0)