API · /trading-api

Trading Risk API

healthy 4,328 Subscribers

Trading risk-management maths as an API, computed locally and deterministically — the position-sizing and money-management numbers every disciplined trader runs before a trade. The position-size endpoint is instrument-agnostic: from an account balance, the percentage of it you are willing to risk, an entry and a stop-loss it returns the position size in units (shares, contracts, lots or coins), the cash at risk and, with a target, the potential reward and the risk-reward ratio — risk 1 % of a $10,000 account on a 50-pip stop and you trade 0.2 lots, losing exactly $100 if the stop hits. The pip-value endpoint gives the forex pip value for a lot or unit size in the quote currency, with a quote-to-account rate for non-account pairs — a standard lot at a 0.0001 pip is 10 units of the quote currency. The kelly endpoint computes the Kelly criterion optimal bet fraction f* = W − (1−W)/R from a win rate and the win/loss payoff ratio (or average win and loss), plus the half-Kelly many traders prefer and the per-unit expectancy, flagging whether the edge is positive at all. Everything is computed locally and deterministically, so it is instant and private. Ideal for trading-journal, broker, prop-firm, backtesting and fintech app developers, position-sizing and risk-management tools, and trading education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 compute endpoints. This is risk and position-sizing maths; for FX rate conversion use a currency API and for option pricing a Black-Scholes API.

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

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

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

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

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
96 ms
Server probes · 24h
Subscribers
4,328
active
Total calls
84
last 7 days
status Full status page → · 12 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 3,450 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 3,450 calls/month
  • 2 req/sec
  • Position sizing + pip value + Kelly
  • No credit card
Sign in to subscribe

Starter

€8.50 /month

  • 38,000 calls / month
  • 6 requests / second
  • Hard cap (429 above quota, no overage)
  • 38,000 calls/month
  • 6 req/sec
  • Risk-reward, half-Kelly, expectancy
  • Email support
Sign in to subscribe

Pro

€21.50 /month

  • 186,000 calls / month
  • 15 requests / second
  • Hard cap (429 above quota, no overage)
  • 186,000 calls/month
  • 15 req/sec
  • Trading-journal & prop-firm pipelines
  • Priority support
Sign in to subscribe

Mega

€63.00 /month

  • 1,050,000 calls / month
  • 40 requests / second
  • Hard cap (429 above quota, no overage)
  • 1,050,000 calls/month
  • 40 req/sec
  • Platform scale
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

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

Volume Indicators API

Live volume-based technical indicators that traders run to confirm a move with the volume behind it, computed on demand from the OHLCV candles you pass in — no key, no cache, nothing stored. The mfi endpoint returns the Money Flow Index, a volume-weighted version of RSI that swings from 0 to 100, with an overbought reading above 80 and oversold below 20. The obv endpoint returns On-Balance Volume, the running total that adds a candle's volume on an up close and subtracts it on a down close, together with whether it is rising or falling — rising OBV confirms buying pressure. The cmf endpoint returns the Chaikin Money Flow, which sums money-flow volume over the lookback to show whether buyers or sellers are in control. These indicators all need the volume of each candle, which makes them a fundamentally different tool from price-only indicators like RSI, MACD, Stochastic and ADX: they answer whether volume is confirming the price move or diverging from it. Works for any market — forex, stocks, crypto or commodities — because you supply the candles with volume. Computed locally and deterministically, so it is instant and private. Ideal for trading bots, divergence screeners, breakout confirmation and trading dashboards. Candles are open:high:low:close:volume. Live, nothing stored. 3 compute endpoints. For price-only indicators use a technical-indicators, oscillators or trend-indicators API.

api.oanor.com/volumeindicators-api

Trend Indicators API

Live trend and direction indicators that traders run to gauge whether a market is trending and which way, computed on demand from the OHLC candles you pass in — no key, no cache, nothing stored. The adx endpoint returns the ADX (Average Directional Index) with the +DI and -DI lines using Wilder's method, so you get both the strength of a trend (a reading above 25 signals a real trend) and its direction. The psar endpoint returns the Parabolic SAR — the trailing stop-and-reverse level that sits below price in an uptrend and above it in a downtrend, and flips when price crosses it — together with the current trend. The donchian endpoint returns the Donchian Channel: the highest high and lowest low over the lookback with the midline, and whether the last close has broken out of the channel. These indicators all need the full high, low and close, and they answer a different question than momentum oscillators, closes-only indicators or volatility tools: is there a trend, and which way is it going. Works for any market — forex, stocks, crypto or commodities. Computed locally and deterministically, so it is instant and private. Ideal for trend-following bots, breakout screeners, trailing-stop logic and trading dashboards. ADX needs 2 x period + 1 candles. Live, nothing stored. 3 compute endpoints. For RSI/MACD use a technical-indicators API; for Stochastic/CCI use an oscillators API.

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

Frequently asked questions

Quick answers about pricing, quotas, and integration.

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