S&P 5005,983+0.49%
NASDAQ21,220+0.47%
Russell2,187-0.64%
VIX18.20+0.7
10Y Yield4.31%+3.0bp
Gold2,936+0.62%
Crude70.40-0.98%
Bitcoin95,800-0.42%
S&P 5005,983+0.49%
NASDAQ21,220+0.47%
Russell2,187-0.64%
VIX18.20+0.7
10Y Yield4.31%+3.0bp
Gold2,936+0.62%
Crude70.40-0.98%
Bitcoin95,800-0.42%
simulated

Crypto Markets

Real-time cryptocurrency market data with perpetual futures funding rate analysis.


Overview

The Crypto Markets module provides a live dashboard tracking the top 20 cryptocurrencies by market capitalization alongside perpetual futures funding rates from Binance. It is designed for risk professionals monitoring digital asset exposure, basis trades, and market sentiment.

The module consists of two sections:

Access the live dashboard at /crypto.


Data Sources

Spot Market Data

PropertyValue
ProviderCoinGecko (free tier)
API route/api/crypto/market
Client refresh60 seconds
Server cache60s TTL, stale-while-revalidate 120s
Rate limit30 requests/minute (CoinGecko free tier)
AuthenticationNone required
Timeout8 seconds

Funding Rate Data

PropertyValue
ProviderBinance Futures (public API)
API route/api/crypto/funding
Client refresh120 seconds
Server cache120s TTL, stale-while-revalidate 300s
Endpointfapi/v1/premiumIndex
AuthenticationNone required
Timeout8 seconds

Both endpoints use in-memory server-side caching with configurable TTLs to stay within free-tier rate limits. No API keys are required. Errors return 502 status with empty arrays and an error message.


Tracked Assets

The following 20 assets are tracked across both spot and perpetual markets:

#CoinCoinGecko IDBinance Perp
1BitcoinbitcoinBTCUSDT
2EthereumethereumETHUSDT
3SolanasolanaSOLUSDT
4XRPrippleXRPUSDT
5CardanocardanoADAUSDT
6DogecoindogecoinDOGEUSDT
7Avalancheavalanche-2AVAXUSDT
8ChainlinkchainlinkLINKUSDT
9PolkadotpolkadotDOTUSDT
10Polygonpolygon-posMATICUSDT
11LitecoinlitecoinLTCUSDT
12UniswapuniswapUNIUSDT
13StellarstellarXLMUSDT
14CosmoscosmosATOMUSDT
15NEARnearNEARUSDT
16AptosaptosAPTUSDT
17ArbitrumarbitrumARBUSDT
18OptimismoptimismOPUSDT
19SuisuiSUIUSDT
20PepepepePEPEUSDT

Market Overview

Metrics Displayed

ColumnDescription
RankCoinGecko market cap rank
CoinName, symbol, and CoinGecko link
PriceCurrent spot price (USD), adaptive decimal places
1h / 24h / 7dPercentage change over each period
Volume24-hour trading volume
Mkt CapCurrent market capitalization
24h RangeLow-high gradient bar with current price indicator
7d7-day price sparkline (downsampled to ~40 points)

Summary Bar

The top-level summary shows:

ATH Distance

A grid of cards showing each coin's distance from its all-time high, color-coded:

Distance from ATHColor
Within 10%Green
10%; 30%Amber
30%; 60%Orange
Greater than 60%Red

Price Flash

When prices update, rows briefly flash green (price up) or red (price down) for 1.2 seconds to highlight real-time changes.


Perpetual Funding Rates

What Are Funding Rates?

Perpetual futures contracts have no expiry date. To keep the perpetual price anchored to the spot index price, exchanges use a funding rate mechanism:

Funding is exchanged every 8 hours on Binance (00:00, 08:00, 16:00 UTC).

Metrics Displayed

ColumnDescription
SymbolTrading pair (e.g., BTC/USDT)
Mark PriceCurrent mark price (used for liquidations)
Index PriceSpot index price (weighted average across exchanges)
BasisMark-to-index premium/discount as a percentage
Funding RateCurrent 8-hour funding rate (%)
AnnualizedFunding rate annualized
Next FundingTime of next funding payment

Annualization Formula

Annualized Rate = lastFundingRate * 3 * 365 * 100

Summary Statistics

The funding rates section displays aggregate statistics:

Interpreting Funding Rates

Annualized RateInterpretation
> +30%Extremely bullish; high cost to hold longs
+10% to +30%Moderately bullish
-5% to +10%Neutral / balanced positioning
-5% to -30%Moderately bearish
< -30%Extremely bearish; high cost to hold shorts

Basis Trade Relevance

Funding rates are critical for cash-and-carry basis trades — buy spot, short perp, collect positive funding. The annualized rate column helps identify carry opportunities and crowded positioning.


Architecture

API Routes

/api/crypto/market     →  CoinGecko spot data (GET)
/api/crypto/funding    →  Binance perp funding rates (GET)

Components

ComponentFileDescription
CryptoMonitorcomponents/crypto/CryptoMonitor.tsxSpot market table with sorting, sparklines, ATH cards, price flash
FundingRatescomponents/crypto/FundingRates.tsxFunding rate table with sorting, basis display, summary stats

Page Routes

RouteDescription
/cryptoPublic crypto dashboard (market overview + funding rates)
/market-risk/cryptoAdmin-only crypto monitor (market overview only)

Caching Strategy

EndpointCache TTLStale-While-RevalidateClient Poll
/api/crypto/market60s120s60s
/api/crypto/funding120s300s120s

Sorting

Both tables support click-to-sort on column headers. Clicking the active sort column toggles between ascending and descending order. The active column is highlighted in emerald with a directional arrow. Funding rates default to sorting by annualized rate (descending).