Multi-exchange crypto intelligence platform with real-time streaming, screening, and analytics.
git clone https://github.com/HanSoBored/CryptoScope
cd CryptoScope
cp .env.example .env
docker compose up -dAccess:
- Frontend: http://localhost:3001
- Backend: http://localhost:3000
- API Docs: http://localhost:3000/api-docs/swagger-ui
โ ๏ธ Notice: CLI/TUI interface has been deprecated. Use the web API and frontend instead.
- โ 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
# Build from source
git clone https://github.com/HanSoBored/CryptoScope
cd CryptoScope
cargo build --releasePrerequisites: Rust 1.88+, Node.js 20+, Linux: sudo apt-get install -y pkg-config libssl-dev
| 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.) |
Supported: Bybit V5 (linear + inverse perpetual/futures)
Planned: Binance Futures, OKX Derivatives, cross-exchange symbol comparison
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
Required: JWT_SECRET, ADMIN_USER, ADMIN_PASS_HASH, CORS_ORIGINS, RUST_ENV
See Configuration Guide for all environment variables and options.
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 instructionsAvailable Tools:
get_exchangesโ List supported exchangesget_symbolsโ Fetch trading symbolsrun_screenerโ Price screening with filtersget_statsโ Cache statisticsloginโ JWT authenticationrefresh_cacheโ Manual cache refresh (protected)
Contributions welcome! Please feel free to submit a Pull Request.
GNU General Public License v3.0 (GPL-3.0)