Token Correlation
Calculate price correlation between crypto assets based on real-time Binance data.Endpoint
x402 Payment Required
This endpoint requires x402 payment.Parameters
Trading pair symbol to analyze (e.g., “BTCUSDT”, “ETHUSDT”)
Maximum number of correlated pairs to return
Response
The queried trading pair symbol
Array of correlated pairs, sorted by absolute correlation strength. Each item contains:
symbol- Correlated trading paircorrelation- Correlation coefficient (-1 to 1)
Example Request
Example Response
Correlation Matrix
Get full correlation matrix for all tracked trading pairs.Endpoint
x402 Payment Required
This endpoint requires x402 payment.Parameters
No parameters required.Response
Time interval used for calculation (e.g., “1m”)
Number of trading pairs in the matrix
Array of all trading pair symbols included in the matrix
Correlation matrix object. Each key is a symbol, with nested objects containing correlation values to all other symbols.
Tracked Trading Pairs
The correlation matrix includes 50+ major USDT trading pairs:- Major assets: BTC, ETH, BNB, SOL, XRP, ADA, AVAX, DOGE, DOT, LINK
- DeFi tokens: UNI, AAVE, MKR, SNX, PENDLE
- Layer 2: OP, ARB, MATIC
- Emerging: SUI, SEI, APT, TIA, INJ, FET
- And more…
Example Request
Example Response
OHLC Candlestick Data
Fetch OHLC (Open, High, Low, Close) candlestick data for multiple symbols in batch.Endpoint
Parameters
Comma-separated list of trading pairs (e.g., “BTCUSDT,ETHUSDT,SOLUSDT”) or “ALL” for top 50 pairs
Candlestick interval (e.g., “1m”, “5m”, “15m”, “1h”, “4h”, “1d”)
Response
Number of symbols fetched
Time interval used
Request timestamp (Unix milliseconds)
Array of results for each symbol. Each result contains:
symbol- Trading pair symbolsuccess- Boolean indicating if fetch succeededdata- Array of OHLC objects (if successful)error- Error message (if failed)
OHLC Data Format
Each candlestick object contains:time- Unix timestamp (milliseconds)open- Opening pricehigh- Highest pricelow- Lowest priceclose- Closing pricevolume- Trading volume
Rate Limiting
The endpoint limits concurrent requests to 5 to respect Binance API rate limits. When using “ALL”, only the top 50 pairs are fetched to prevent timeouts.Example Request
Example Response
Error Responses
- 400 Bad Request - Missing or invalid parameters
- 404 Not Found - Symbol not found or no correlation data available
- 500 Internal Server Error - Failed to compute correlation or fetch OHLC data
- 502 Bad Gateway - Binance API request failed
Correlation Methodology
Correlations are calculated using:- Data Source: 1-minute OHLC candlesticks from Binance
- Method: Pearson correlation coefficient on log returns
- Range: -1 (perfect negative correlation) to +1 (perfect positive correlation)
- Update Frequency: Real-time based on latest Binance data