Skip to content

Coin Compare

Compare any combination of crypto assets, US stocks, indices, and commodities across risk-adjusted performance, drawdowns, and correlations. Use the interactive tool for visual tearsheets.

This page documents the free, no-auth correlation endpoints under https://www.sharpe.ai/api/correlation/* that power the Coin Compare tool. For the authenticated, versioned, rate-limited correlation matrix (with stable pagination, request IDs, and SLA), see /v1/correlation/matrix instead.


Available assets

The Coin Compare tool ships a curated set of 38 assets across four categories — crypto, stocks, indices, and commodities — chosen because they're the pairs traders ask about most. Up to 5 assets can be compared simultaneously inside the UI against one benchmark. The underlying correlation engine (and the /v1/correlation/matrix endpoint) supports a broader universe — any supported crypto asset ID plus the supported TradFi tickers — so hit that endpoint directly if you need an asset that's not in this curated list.

Cryptocurrencies (20)

AssetSymbol
BitcoinBTC
EthereumETH
SolanaSOL
BNBBNB
XRPXRP
CardanoADA
DogecoinDOGE
AvalancheAVAX
TronTRX
PolkadotDOT
PolygonMATIC
ChainlinkLINK
Shiba InuSHIB
LitecoinLTC
Bitcoin CashBCH
CosmosATOM
StellarXLM
UniswapUNI
HederaHBAR
Ethereum ClassicETC

US stocks (10)

AssetSymbol
AppleAAPL
MicrosoftMSFT
NVIDIANVDA
AlphabetGOOGL
AmazonAMZN
MetaMETA
TeslaTSLA
Berkshire HathawayBRK-B
JPMorganJPM
VisaV

Indices and commodities (4)

AssetSymbol
S&P 500SPY
NASDAQ CompositeQQQ
GoldGLD
SilverSLV

Comparison metrics

The tearsheet report calculates these metrics for each selected asset over the chosen period (1y, 2y, 3y, 5y, or max):

  • Name
    Sharpe Ratio
    Type
    number
    Description

    Risk-adjusted return — excess return over the risk-free rate divided by the standard deviation of returns. Higher is better. A Sharpe above 1.0 is generally considered good; above 2.0 is excellent.

  • Name
    CAGR
    Type
    percentage
    Description

    Compound Annual Growth Rate — the annualized rate of return assuming profits are reinvested. Smooths out volatility to show the true growth trajectory.

  • Name
    Max Drawdown
    Type
    percentage
    Description

    Largest peak-to-trough decline during the period. Measures the worst-case scenario for an investor who bought at the peak. Lower magnitude is better.

  • Name
    Volatility
    Type
    percentage
    Description

    Annualized standard deviation of daily returns. Measures price fluctuation intensity. Higher volatility means larger daily swings.

  • Name
    Correlation
    Type
    number
    Description

    Pearson correlation coefficient between each asset pair. Ranges from -1 (perfectly inverse) to +1 (perfectly correlated). Useful for portfolio diversification — low or negative correlations reduce overall risk.


Correlation matrix API

Returns a symmetric NxN correlation matrix built from daily log returns. Supports both crypto and TradFi assets.

  • Name
    period
    Type
    string
    Description

    Lookback period. One of 30d, 90d, 1y, 3y. Defaults to 30d.

  • Name
    ids
    Type
    string
    Description

    Comma-separated asset IDs. Crypto: canonical asset IDs (e.g., bitcoin, ethereum). TradFi: short IDs (e.g., sp500, gold, nvda, aapl). Max 10. Defaults to bitcoin,ethereum,solana,sp500,gold.

Response fields

  • Name
    assets
    Type
    array
    Description

    Ordered array of asset metadata matching the matrix dimensions. Each entry has id, name, symbol, type ("crypto" or "tradfi"), and logoUrl.

  • Name
    matrix
    Type
    number[][]
    Description

    NxN array of Pearson correlation coefficients. matrix[i][j] ranges from -1 to 1, or null when insufficient data.

  • Name
    dataPoints
    Type
    number[][]
    Description

    NxN array — number of overlapping daily observations used for each pair.

  • Name
    period
    Type
    string
    Description

    The period that was applied.

  • Name
    computedAt
    Type
    string
    Description

    ISO 8601 timestamp of the last computation.

Request

GET
/api/correlation/matrix
curl -G https://www.sharpe.ai/api/correlation/matrix \
  -d period=90d \
  -d ids=bitcoin,ethereum,nvda,sp500,gold
{
  "assets": [
    { "id": "bitcoin", "name": "Bitcoin", "symbol": "BTC", "type": "crypto" },
    { "id": "ethereum", "name": "Ethereum", "symbol": "ETH", "type": "crypto" },
    { "id": "nvda", "name": "NVIDIA", "symbol": "NVDA", "type": "tradfi" },
    { "id": "sp500", "name": "S&P 500", "symbol": "SPY", "type": "tradfi" },
    { "id": "gold", "name": "Gold", "symbol": "GLD", "type": "tradfi" }
  ],
  "matrix": [
    [1.0,  0.87,  0.52,  0.48,  0.12],
    [0.87, 1.0,   0.49,  0.41, -0.03],
    [0.52, 0.49,  1.0,   0.89,  0.05],
    [0.48, 0.41,  0.89,  1.0,   0.15],
    [0.12, -0.03, 0.05,  0.15,  1.0]
  ],
  "period": "90d",
  "computedAt": "2026-04-10T04:00:00Z"
}

Correlation history API

Returns rolling correlation windows (30D, 60D, 90D) between two assets over time. Useful for detecting regime changes — when correlations spike or break down.

  • Name
    asset1
    Type
    string
    Description

    First asset ID (e.g., bitcoin).

  • Name
    asset2
    Type
    string
    Description

    Second asset ID (e.g., sp500).

  • Name
    period
    Type
    string
    Description

    Lookback period. One of 30d, 90d, 1y, 3y. Defaults to 1y.

Request

GET
/api/correlation/history
curl -G https://www.sharpe.ai/api/correlation/history \
  -d asset1=bitcoin \
  -d asset2=gold \
  -d period=1y

On-demand correlation API

Compute correlations for any supported crypto asset against a custom set of assets. Rate-limited to 10 requests per minute per IP.

  • Name
    coinId
    Type
    string
    Description

    Canonical coin ID (e.g., bitcoin, uniswap, pendle).

  • Name
    period
    Type
    string
    Description

    One of 30d, 90d, 1y, 3y. Defaults to 30d.

  • Name
    against
    Type
    string
    Description

    Comma-separated IDs to correlate against. Defaults to the standard set.

Request

GET
/api/correlation/on-demand
curl -G https://www.sharpe.ai/api/correlation/on-demand \
  -d coinId=pendle \
  -d period=90d \
  -d against=bitcoin,ethereum,solana

Use cases

  • Portfolio diversification — Use the correlation matrix to identify assets with low or negative correlations, reducing portfolio-level risk.
  • Hedge selection — Compare crypto holdings against gold, DXY, or equity indices to find natural hedges during risk-off regimes.
  • Narrative rotation — Track correlation shifts between narrative groups (DeFi, AI, L1s) to detect rotation patterns and positioning changes.
  • Risk-adjusted comparison — Use Sharpe ratio and max drawdown to compare risk-adjusted returns across asset classes (BTC vs NVDA vs Gold).

Was this page helpful?