API · /capm-api

CAPM & Beta API

healthy 3,308 Subscribers

Live capital-asset-pricing-model and systematic-risk analytics that quants and portfolio managers run on an asset against a market benchmark, computed on demand from the two series you pass in — no key, no cache, nothing stored. The beta endpoint regresses an asset's returns on the market's and returns the beta, the alpha (per period and annualised), the correlation and the R-squared, so you see how strongly the asset tracks the market and how much it amplifies it. The capm endpoint returns the CAPM expected return — risk-free rate plus beta times the market risk premium — and Jensen's alpha, the excess over what beta says the asset should earn; it also has a direct mode where you pass beta, market return and risk-free rate with no series. The treynor endpoint returns the Treynor ratio, the reward per unit of systematic (market) risk. This measures risk relative to a market — systematic risk — which is fundamentally different from single-series total-risk tools: it needs two series and answers how an asset moves with, and is priced against, the market. Works for any asset against any benchmark: stocks, funds, crypto, FX or a whole portfolio. Computed locally and deterministically, so it is instant and private. Ideal for portfolio analytics, factor and risk dashboards, fund fact-sheets and back-tests. Rates are fractions (0.02 = 2%). Live, nothing stored. 3 compute endpoints. For single-series Sharpe/volatility/drawdown use a risk-metrics API.

api.oanor.com/capm-api
Get an API key Try in playground → Contact provider

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

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

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

API health

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

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 4,800 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 4,800 calls/month
  • 2 req/sec
  • Beta + CAPM + Treynor
  • No credit card
Sign in to subscribe

Starter

€7.20 /month

  • 92,000 calls / month
  • 6 requests / second
  • Hard cap (429 above quota, no overage)
  • 92,000 calls/month
  • 6 req/sec
  • Alpha, correlation & R-squared
  • Email support
Sign in to subscribe

Pro

€20.80 /month

  • 480,000 calls / month
  • 18 requests / second
  • Hard cap (429 above quota, no overage)
  • 480,000 calls/month
  • 18 req/sec
  • Factor & risk dashboards
  • Priority support
Sign in to subscribe

Business

€47.50 /month

  • 2,950,000 calls / month
  • 45 requests / second
  • Hard cap (429 above quota, no overage)
  • 2,950,000 calls/month
  • 45 req/sec
  • Fund & portfolio scale
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

Currency Converter API

Live foreign-exchange conversion across 160+ world currencies — the plain, developer-friendly converter. Get the latest rates for any base currency, convert an amount between any two currencies, read the rate (and inverse) for a single pair, or list every supported currency. Rates are read live from an open exchange-rate source that aggregates a broad set of feeds and covers far more currencies than ECB-only data — including emerging-market and exotic currencies such as the Nigerian naira, Indian rupee or Vietnamese dong. This is the everyday convert / latest-rates utility a checkout, invoice, pricing page or travel app needs — distinct from the FX analytics APIs in the catalogue (historical date ranges, pip and position-size calculators, triangular-arbitrage path maths, currency indices), which compute on rates rather than simply converting them.

api.oanor.com/currencyconverter-api

Trade Setup & R:R Planner API

Live trade-planning analytics built on the geometry of a setup, the numbers a trader checks before pulling the trigger, computed on demand from the entry, stop and target you pass in — no key, no cache, nothing stored. The plan endpoint turns an entry, stop-loss and target into the risk and reward per unit, the reward-to-risk ratio and the break-even win rate — the minimum win rate that makes the trade profitable — and, if you supply an account size and a risk percent, the position size, risk amount and reward amount. The targets endpoint projects target prices at chosen R-multiples of the stop distance, so you can ladder out at 1R, 2R and 3R. The expectancy endpoint turns a reward-to-risk ratio and a win rate into the expected value per trade in R and the profit factor, telling you whether an edge is positive. This is a trade-geometry planner, fundamentally different from account-based position sizers, forward Monte-Carlo simulators and backward trade-journal analyzers: it reasons from the entry, stop and target. Works for any market — forex, stocks, crypto or futures — and for long or short. Computed locally and deterministically, so it is instant and private. Ideal for trade journals, risk checklists, broker tools and trading dashboards. Live, nothing stored. 3 compute endpoints. For Kelly position sizing use a trading-risk API; for a full outcome distribution use a strategy simulator.

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

Trade Stats API

Live trading-performance analytics that traders run on a list of realised trade results, computed on demand from the profit-and-loss series you pass in — no key, no cache, nothing stored. The analyze endpoint returns the full performance scorecard: number of wins and losses, win rate, gross profit and loss, profit factor, expectancy, average win and loss, payoff ratio, and the largest win and loss — the numbers a trader pulls from a trade journal to judge a strategy. The equity endpoint builds the equity curve from a starting balance and returns the running balance after every trade, the peak, the maximum drawdown in money and percent, and the total return. The streaks endpoint returns the longest winning and losing runs and the current streak. This is a backward-looking trade-journal analyzer — it scores actual results, which is fundamentally different from forward Monte-Carlo simulators and position sizers that work from assumptions. Each value you pass is one closed trade's profit (positive) or loss (negative). Works for any market or strategy — stocks, forex, crypto or futures. Computed locally and deterministically, so it is instant and private. Ideal for trade journals, strategy dashboards, back-test scorecards and broker reports. Live, nothing stored. 3 compute endpoints. For forward simulation of an edge use a strategy-simulator API; for position sizing use a trading-risk API.

api.oanor.com/tradestats-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for CAPM & Beta API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call CAPM & Beta API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for CAPM & Beta 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 CAPM & Beta API cost?
CAPM & Beta API has a free tier with 100 calls / month. Paid plans start at €7.20 / 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 CAPM & Beta API GDPR-compliant?
All requests to CAPM & Beta 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/capm-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/capm-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/capm-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/capm-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.