#pairs-trading
2 APIs with this tag
Crypto Pairs Trading & Spread API
The statistical-arbitrage signal between two coins — how stretched their price ratio is versus its own recent average, computed live from Binance daily candles (no key, nothing stored). Pairs traders do not bet on direction; they bet on the spread between two correlated coins reverting to its mean. When ETH/BTC (or any ratio) runs two standard deviations above its average, the spread is stretched — short the rich leg, long the cheap one, and profit when it snaps back. The spread endpoint takes two coins and returns the current price ratio, its rolling mean and standard deviation, the z-score (how many standard deviations stretched), the return correlation of the two coins (pairs trading works on correlated pairs) and a long/short mean-reversion signal. The screener endpoint scans every pair in a liquid basket and ranks them by absolute z-score — the most stretched, most tradeable spreads right now. The coins endpoint lists what is covered. The pairs-trading / relative-value spread cut for crypto — distinct from the correlation-&-beta API (which gives the correlation matrix, not the tradeable spread), the single-coin momentum, the funding-arbitrage and the price APIs. It answers whether a spread is stretched, not whether two coins move together.
api.oanor.com/cryptopairs-api
Crypto Correlation & Beta API
How crypto assets move together, computed live from Binance daily candles — no key, nothing stored. Correlation is the single most important input to diversification, pairs trading and risk: two coins with a correlation near 1 are effectively the same bet, while a low or negative correlation is genuine diversification. The matrix endpoint returns the full pairwise return-correlation matrix across a basket of coins over a chosen window, together with the average pairwise correlation — a one-number gauge of how "risk-on, all-together" the market is. The pair endpoint returns the correlation between any two coins, with the R-squared and a plain-language relationship label. The beta endpoint returns each coin's beta to BTC — how much it amplifies (beta above 1) or dampens (beta below 1) Bitcoin's moves — with its correlation and R-squared, the read altcoin traders use to size directional bets. Everything is computed from the standard deviation and covariance of daily log returns. This is the cross-asset correlation / beta analytics cut for crypto — distinct from the FX-correlation API, the single-asset realised-volatility API and the portfolio-optimiser in the catalogue. Coins are Binance bases (BTC, ETH) or full symbols (BTCUSDT); the quote defaults to USDT and the window is 14-365 days.
api.oanor.com/cryptocorrelation-api