Skip to main content
Crypton

What is Crypton?

Crypton is a unified API that aggregates real-time crypto derivatives data from 105+ exchanges into a single, consistent interface. Full CoinGlass + CCXT public API parity — self-hostable, extensible, and free.

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, Coinbase International
CEX SpotCoinbase, Binance US, 90+ via generic spot adapters
DEX PerpsHyperliquid, dYdX
DEX SpotUniswap, PancakeSwap, Raydium, Orca, Jupiter
OptionsDeribit (full Greeks), OKX (option chain + IV)
LendingAave, Compound, MakerDAO, Morpho (via DeFiLlama)
ETFs12 BTC + 10 ETH spot ETFs (SoSoValue)
Reserves14 CEX reserve balances (DefiLlama)

Architecture

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

                    ┌──────┴───────┐
                    │   REST API   │
                    │  api.crypton.dev  │
                    └──────┬───────┘

              ┌────────────┼────────────┐
              │            │            │
        ┌─────┴────┐ ┌────┴─────┐ ┌───┴────┐
        │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
  • 900+ unit tests — Comprehensive coverage across all exchange parsers, indicators, cache, and integration tests
  • ETF flow data — BTC & ETH spot ETF daily flows, AUM, and holdings via SoSoValue
  • Exchange reserves — CEX reserve balances via DefiLlama for 14 exchanges
  • Liquidation heatmap — Computed liquidation price levels from leverage tier data
  • 12 WebSocket upstream feeds — Real-time tickers, funding, klines, orderbooks from Binance/Bybit/OKX

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.