Back

#correlation

6 APIs with this tag

Stock Sector Correlation Matrix API

How the eleven S&P 500 sectors move together, computed live from Yahoo Finance via the SPDR sector ETFs (no key, nothing stored). Sector correlation is the heart of equity diversification and rotation: defensives (utilities, staples, health care) and cyclicals (tech, discretionary, financials, energy) cluster differently, and when correlations rise the whole market is moving as one (risk-on/risk-off), while a spread of correlations means stock-picking and rotation are rewarded. The matrix endpoint returns the full pairwise return-correlation matrix across all eleven sectors with the most- and least-correlated sector pairs. The sector endpoint returns one sector's correlation to every other, ranked, plus its beta to the S&P 500 (how much it amplifies the market). The sectors endpoint lists what is covered. The equity sector correlation / rotation cut — distinct from the cross-asset correlation matrix (asset classes, not sectors), the crypto and currency correlation APIs (other markets) and the sector price/performance feed. It answers which sectors are the same bet and which diversify, within the stock market.

api.oanor.com/sectorcorrelation-api

Cross-Asset Correlation Matrix API

How the major asset classes move together — a live correlation matrix across stocks, bonds, gold, oil, crypto and the dollar (no key, nothing stored). Correlation is the single most important input to diversification and risk: two assets with a correlation near 1 are effectively the same bet, while a low or negative correlation is genuine diversification. Where a crypto-correlation API stays inside crypto and an FX-correlation API stays inside currencies, this spans the whole multi-asset book at once — US and international equities, Treasuries and credit, gold, silver, oil and broad commodities, Bitcoin and Ether, the dollar and real estate — so an allocator can see in one call whether bonds are still hedging stocks, whether gold is decoupled and whether crypto is trading as a risk asset. The matrix endpoint returns the full pairwise return-correlation matrix over a chosen window, with the most- and least-correlated pairs. The asset endpoint returns one asset's correlation to every other, ranked, so you see its best diversifiers at a glance. The assets endpoint lists what is covered. The cross-asset / multi-asset correlation surface — distinct from the crypto-only correlation API, the FX-only currency-correlation API and the bring-your-own-series CAPM, risk-metrics and portfolio-optimiser calculators.

api.oanor.com/crossassetcorrelation-api

Crypto-to-Macro Correlation API

Whether crypto is trading as a risk asset or a hedge, measured by how closely a coin moves with the stock market, gold and the dollar — computed live from Binance and Yahoo Finance, no key, nothing stored. The single most-asked macro question about crypto is whether it is "digital gold" or just high-beta tech; this answers it with numbers. The correlation endpoint returns, for a coin (BTC or ETH), its return correlation to the S&P 500, the Nasdaq 100, gold and the US dollar index over a chosen window, each with a plain-language read (risk-on if it tracks stocks, a hedge if it tracks gold or moves against the dollar) and an overall verdict. The beta endpoint returns the coin's beta to the S&P 500 — how much it amplifies equity moves — with the correlation and R-squared. This is the cross-asset / crypto-versus-traditional-markets correlation cut — distinct from the crypto-to-crypto correlation API (coins against each other), the realised-volatility and the price APIs in the catalogue. Correlations use daily log returns aligned on common trading days; coin is BTC or ETH, window 20-365 days.

api.oanor.com/cryptomacro-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

Currency Correlation API

A live forex correlation analytic as an API, computed from European Central Bank daily reference rates. It measures how the world's currencies move together: each currency's daily appreciation is correlated against every other, so you can see which currencies move in lock-step (don't double up the same risk) and which move opposite (natural hedges). Get one currency's correlations to all others ranked, the coefficient for any pair, or a full correlation matrix for a basket. Risk and diversification input for forex, portfolio and trading apps. Live, no key. Distinct from currency-strength (direction) and FX-volatility (magnitude) — this is co-movement.

api.oanor.com/currencycorrelation-api

Statistics Calculator API

Descriptive-statistics maths as an API, computed locally and deterministically. The descriptive endpoint summarises a list of numbers — the count, sum, mean, median, mode, minimum, maximum and range, the population and sample variance and standard deviation, and the quartiles Q1/Q2/Q3 with the interquartile range by Tukey's method. The correlation endpoint computes the Pearson correlation coefficient r between two equal-length series — from −1 (perfect inverse) through 0 (none) to +1 (perfect direct) — along with R² and the covariance. The regression endpoint fits a least-squares line y = a + b·x, returning the slope, intercept and R², the equation, and an optional prediction for a given x. Data is accepted as a JSON array or a comma-separated list. Everything is computed locally and deterministically, so it is instant and private. Ideal for data-analysis, dashboard, research and education app developers, reporting and BI tools, and spreadsheet replacements. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is descriptive statistics; for probability distributions and combinatorics use a probability API.

api.oanor.com/statistics-api