Back

#drawdown

7 APIs with this tag

Ulcer Index API

Ranks a cross-asset universe by how painful each market's drawdowns have been, and how much return it paid for that pain, computed live from Yahoo Finance daily closes — no key, nothing stored. Volatility treats an up-move and a down-move as equally risky, but investors only lose sleep over the downside: the depth of the fall from the last high and how long it drags on before recovering. The Ulcer Index (Peter Martin) captures exactly that — the root-mean-square of every day's percentage drawdown from the running peak, so a deep, long drawdown is penalised far more than a brief dip and a market that keeps making new highs scores near zero. From it comes the Martin ratio (the Ulcer Performance Index) — annualised excess return divided by the Ulcer Index — the return earned per unit of drawdown pain, a downside-only cousin of the Sharpe ratio. The asset endpoint returns one instrument's full pain profile: Ulcer Index, maximum, average and current drawdown, longest time underwater, the Martin ratio and the pain ratio. The screener endpoint ranks the 21-instrument universe (equities, sectors, commodities, bonds, crypto; filterable by class) by Martin ratio (best pain-adjusted return) or by Ulcer Index (smoothest ride). This is the drawdown-pain / Ulcer-Index cut — distinct from a current-drawdown monitor (a point-in-time snapshot of how far below peak each market is), the Sharpe/Sortino/Calmar screener (Calmar uses only the single worst drawdown) and the price APIs. It scores the whole shape of the pain, not one point of it.

api.oanor.com/ulcerindex-api

Cross-Asset Drawdown & Recovery Monitor API

How far every major market is below its peak and how long it has been underwater, computed live from Yahoo Finance (no key, nothing stored). Drawdown is the risk investors actually feel: not volatility in the abstract, but the gap between today's price and the high-water mark, and the painful stretch spent climbing back. For every asset — equity indices, bonds, gold, oil, commodities, FX and crypto — this measures the current drawdown from its rolling peak, the worst (maximum) drawdown over the window, the date and level of the peak, how many days it has been underwater, and how much of the fall it has already recovered. The monitor endpoint returns the whole universe ranked by current drawdown — what is deepest underwater and what is back at new highs — with a summary of how many markets are in drawdown. The asset endpoint returns one market's drawdown card. The universe endpoint lists what is covered. The cross-asset drawdown / underwater-recovery cut — distinct from the FX-only drawdown API, the crypto all-time-high API and the cross-asset volatility API (which ranks risk-adjusted return, not the underwater curve). It answers how far from the highs, and how long.

api.oanor.com/assetdrawdown-api

Cross-Asset Volatility & Risk-Adjusted Return API

The risk dashboard for the whole multi-asset book — how volatile each asset class is, how much it returned, and how much return it paid per unit of risk, computed live from Yahoo Finance (no key, nothing stored). Return without risk is meaningless; this puts them side by side. For every instrument — equities, bonds, gold, oil, commodities, FX and crypto — it measures the annualised realised volatility (the standard deviation of daily returns, the market's fear gauge), the trailing return, a Sharpe-style risk-adjusted return (return per unit of volatility) and the worst peak-to-trough drawdown over the window. The ranking endpoint returns the universe ranked by whichever you choose — volatility, Sharpe, return or drawdown — so you can see the calmest and wildest assets and who paid the best risk-adjusted return. The asset endpoint returns one instrument's full risk profile. The universe endpoint lists what is covered. The cross-asset volatility / risk-adjusted-return ranking cut — distinct from the crypto-only volatility and risk APIs, the FX-only volatility API and the bring-your-own-series risk-metrics, CAPM and portfolio-optimiser calculators. It ranks live risk across asset classes.

api.oanor.com/assetvolatility-api

Crypto Risk Profile (VaR & Tail Risk) API

The full risk scorecard of any coin, computed live from its Binance daily candles — no key, nothing stored. Volatility alone hides what matters most for risk: the tails. This returns the Value at Risk (the daily loss not exceeded on 95% / 99% of days), the Conditional VaR / expected shortfall (the average loss on the worst days, beyond VaR), the skewness and excess kurtosis of the return distribution (how asymmetric and how fat-tailed it is — crypto is famously fat-tailed), the maximum drawdown, and the risk-adjusted return ratios (Sharpe and Sortino). The profile endpoint returns the whole scorecard for one coin; the drawdown endpoint returns the worst peak-to-trough decline with its peak, trough and depth plus the current drawdown from the high; the compare endpoint ranks a basket of coins by risk-adjusted return so you can see which carries the most tail risk per unit of return. This is the coin-native risk-distribution / tail-risk cut for crypto — distinct from the generic risk-metrics, CAPM and trade-stats APIs (which compute on a series you pass in) and from the realised-volatility API (which has no VaR, skew, kurtosis or drawdown). Coins are Binance bases (BTC) or symbols (BTCUSDT); the quote defaults to USDT and the window is 30-1000 days. Risk-free rate is assumed 0.

api.oanor.com/cryptorisk-api

Risk of Ruin API

Live risk-of-ruin and drawdown-survival analytics that traders run to size risk so a losing streak cannot wipe them out, computed on demand from the edge you pass in — no key, no cache, nothing stored. The ruin endpoint returns the probability of ever losing your capital given a win rate, a reward-to-risk payoff and the risk taken per trade, solved analytically from the gambler's-ruin equation rather than simulated — it also reports the expectancy in R, the capital units at risk and the single-unit ruin root behind the answer. The drawdown endpoint returns the probability of ever hitting each of several drawdown levels and the gain needed to recover from them. The recovery endpoint returns the loss-and-gain asymmetry — the percent gain required to climb back from any drawdown, the reason a 50 percent loss needs a 100 percent gain — and, if you pass net profit and max drawdown, the recovery factor. This is an analytic risk engine, fundamentally different from Monte-Carlo simulators and price-series drawdown feeds: it turns a win rate, payoff and risk fraction into the closed-form math of survival, instantly. Win rate accepts a fraction or a percentage; payoff is reward-to-risk; negative expectancy makes ruin certain. Computed locally and deterministically, so it is instant and private. Ideal for position sizing, money-management rules, prop-firm risk limits and trading dashboards. Live, nothing stored. 3 compute endpoints. For a full Monte-Carlo outcome distribution use a strategy-simulator API.

api.oanor.com/riskofruin-api

Crypto All-Time-High API

Live crypto all-time-high tracker as an API — the distance-from-ATH (and distance-from-all-time-low) every crypto dashboard shows, powered by CoinGecko. For any coin it returns the current price, its all-time high with the date and how far below it the price sits now (the headline "X% below ATH"), the days since that high, and the mirror metrics versus the all-time low. It also ranks the top 100 coins by how close they are to — or how far they have fallen from — their ATH, so you can see at a glance which assets are at fresh highs and which are deepest in drawdown. Get a coin's ATH stats, the leaders/laggards board, or search to resolve a coin name to its id. The cycle-and-drawdown layer for crypto, trading and dashboard apps. Live, no key. Distinct from live-price, market-cap and OHLC APIs — this is the all-time-high / drawdown analytic.

api.oanor.com/cryptoath-api

FX Drawdown API

A live forex risk analytic that measures the worst peak-to-trough decline a currency pair has suffered, computed from European Central Bank daily reference rates. For any pair it returns the maximum drawdown over the period — the deepest drop from a high to a later low, with the dates it happened — how far the pair is currently below its period high, and whether it has recovered. Get a pair's drawdown over a month, quarter, half-year or year, or scan a basket to rank pairs by worst-case risk. Position-sizing and risk input for forex, trading and research apps. Live, no key. Distinct from rate, strength, volatility, correlation, signal, range and seasonality APIs.

api.oanor.com/fxdrawdown-api