Skip to main content
Crypton

What is Crypton?

Crypton is a unified API that aggregates real-time crypto derivatives data from 23+ exchanges into a single, consistent interface. Think of it as a Coinglass alternative you can self-host and extend.

Data Coverage

Derivatives

Funding rates, open interest, long/short ratios, liquidations, and cross-exchange arbitrage opportunities

Market Data

Real-time prices, spot market movers, L2 orderbooks, technical indicators (RSI, MACD, Bollinger, ATR), and sentiment

DeFi

DEX pool analytics (Uniswap, PancakeSwap, Raydium), DeFi lending rates (Aave, Compound, MakerDAO), and TVL tracking

Supported Exchanges

CategoryExchanges
CEX DerivativesBinance, Bybit, OKX, Bitget, KuCoin, Gate.io, MEXC, HTX, Deribit, BitMEX, Kraken
CEX SpotCoinbase, Binance US
DEX PerpsHyperliquid, dYdX
DEX SpotUniswap, PancakeSwap, Raydium, Orca, Jupiter
LendingAave, Compound, MakerDAO, Morpho (via DeFiLlama)

Architecture

┌─────────────┐     ┌──────────────┐     ┌──────────────┐
│  23+ Exchange│────▶│  Rust Backend │────▶│   Convex DB  │
│  APIs        │     │  (Axum/Tokio)│     │  (Historical)│
└─────────────┘     └──────┬───────┘     └──────────────┘

                    ┌──────┴───────┐
                    │   REST API   │
                    │  :3177       │
                    └──────┬───────┘

              ┌────────────┼────────────┐
              │            │            │
        ┌─────┴────┐ ┌────┴─────┐ ┌───┴────┐
        │Dashboard │ │  Docs    │ │Your App│
        │(Next.js) │ │(Mintlify)│ │        │
        └──────────┘ └──────────┘ └────────┘

Key Features

  • Sub-second polling — DashMap concurrent cache with ~2000 symbols
  • Funding rate normalization — 1h rates (Hyperliquid, dYdX) auto-converted to 8h equivalent
  • Cross-exchange arbitrage — Real-time funding rate spread detection with APR calculation
  • 15 API families — One implementation covers multiple exchanges (Binance family covers Binance, Binance US, BingX, Binance COIN-M)
  • Pure Rust indicators — RSI, MACD, Bollinger Bands, ATR, EMA computed without external dependencies
  • Gzip compression — All API responses are gzip-compressed automatically for faster transfers
  • Real-time WebSocket — Topic-based subscriptions with CloudEvents 1.0 envelopes, wildcard patterns, sequence resume, and token auth
  • 137 unit tests — Comprehensive coverage across all exchange parsers, indicators, and cache logic

Quick Start

# Clone and build
git clone https://github.com/alt0x17/crypton
cd crypton
cargo build --release

# Run (default port 3177)
./target/release/crypton

# Test it
curl http://localhost:3177/v1/overview?symbol=BTC
REST endpoints require no authentication. WebSocket connections require a token (?token=secret). All REST responses are gzip-compressed and wrapped in {status, timestamp, data} envelope.