API · /riskofruin-api

Risk of Ruin API

healthy 3,691 Subscribers

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
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/riskofruin-api/openapi.json
/api/riskofruin-api/llms.txt

Discovery: GET /api/index.json lists every API.

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
108 ms
Server probes · 24h
Subscribers
3,691
active
Total calls
0
last 7 days
status Full status page → · 4 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 4,500 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 4,500 calls/month
  • 2 req/sec
  • Ruin + drawdown + recovery
  • No credit card
Sign in to subscribe

Starter

€7.50 /month

  • 90,500 calls / month
  • 6 requests / second
  • Hard cap (429 above quota, no overage)
  • 90,500 calls/month
  • 6 req/sec
  • Analytic risk-of-ruin & expectancy
  • Email support
Sign in to subscribe

Pro

€21.40 /month

  • 465,000 calls / month
  • 18 requests / second
  • Hard cap (429 above quota, no overage)
  • 465,000 calls/month
  • 18 req/sec
  • Money-management & risk pipelines
  • Priority support
Sign in to subscribe

Business

€48.50 /month

  • 2,870,000 calls / month
  • 45 requests / second
  • Hard cap (429 above quota, no overage)
  • 2,870,000 calls/month
  • 45 req/sec
  • Prop-firm & desk scale
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

Strategy Simulator API

Live Monte-Carlo simulation of a trading strategy's outcome that traders run to judge an edge — computed on demand and reproducibly, no key, nothing cached. Run a sequence of trades many times from a win rate, reward-to-risk payoff and risk-per-trade, and get the distribution of final equity, the probability of profit, the probability of ruin and the drawdown distribution; get the modelled chance of blowing up the account; or get the analytical edge — expectancy per trade, breakeven win rate and profit factor. Every run is seeded, so the same inputs always give the same numbers. A strategy-outcome engine, distinct from position-sizing tools and price simulators: it turns an edge into the equity, drawdown and ruin a strategy faces.

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

SuperTrend & Trend-Following API

Live trend-following indicators that traders run to ride a trend and time its turn, computed on demand from the OHLC candles you pass in — no key, no cache, nothing stored. The supertrend endpoint returns the SuperTrend line, the ATR-banded trailing level that sits below price in an uptrend (acting as support) and above it in a downtrend (acting as resistance) and flips when a close crosses it, with the current trend. The aroon endpoint returns Aroon Up, Aroon Down and the Aroon Oscillator, which measure how recently the highest high and lowest low were made — a reading of 100 means it just happened — to tell you how fresh and strong the trend is. The vortex endpoint returns the Vortex Indicator's VI+ and VI- lines, whose crossover is a classic trend-change signal. These are trend-following indicators, deliberately distinct from the ADX, Parabolic SAR and Donchian set and from momentum, volatility and volume tools: they each use the high, low and close to follow a trend and flag its reversal with their own formula. Works for any market — forex, stocks, crypto or commodities — because you supply the candles. Computed locally and deterministically, so it is instant and private. Ideal for trend-following bots, signal dashboards and back-tests. SuperTrend defaults to period 10 multiplier 3; Aroon to 25; Vortex to 14. Live, nothing stored. 3 compute endpoints. For ADX/Parabolic-SAR/Donchian use a trend-indicators API; for RSI/MACD use a technical-indicators API.

api.oanor.com/supertrend-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for Risk of Ruin API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call Risk of Ruin API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for Risk of Ruin API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does Risk of Ruin API cost?
Risk of Ruin API has a free tier with 100 calls / month. Paid plans start at €7.50 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is Risk of Ruin API GDPR-compliant?
All requests to Risk of Ruin API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

Pick an endpoint from the list on the left to see its details and try it.

Code snippets

Sign up to get an API key, then call any path under your slug.

curl https://api.oanor.com/riskofruin-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/riskofruin-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/riskofruin-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
    "https://api.oanor.com/riskofruin-api/SOME_PATH",
    headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())

Ratings

Sign in to rate.

No reviews yet.

Discussion

Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.

Sign in to start a thread or reply.

Sign in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 This thread is locked — no new replies.

  • No threads yet — start the discussion.

Support

Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.

Sign in to open a support ticket.

Sign in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.