Kelly criterion & expectancy
API · /trading-api
Trading Risk API
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 health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 77 ms
- Server probes · 24h
- Subscribers
- 4,328
- active
- Total calls
- 80
- last 7 days
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
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
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
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
Built by
Related APIs
Other APIs with overlapping tags.
Crypto Derivatives API
A cross-exchange aggregator of cryptocurrency perpetual-futures and derivatives markets — the funding rates, open interest and volume that drive leveraged crypto trading, pulled together across every listed derivatives exchange (Binance, Bybit, OKX, Hyperliquid, MEXC and dozens more). The perps endpoint ranks the largest perpetual markets by open interest with their price, funding rate, open interest and 24h volume. The funding endpoint compares the funding rate of one asset (e.g. BTC, ETH, SOL) across every exchange that lists it, with the average — so you can spot funding dislocations and basis trades at a glance. The exchanges endpoint ranks derivatives venues by open interest with their perpetual and futures pair counts. The overview endpoint aggregates total open interest, total 24h volume and the perpetual-pair count across the whole derivatives market. The meta endpoint documents the API. Live aggregated data, lightly cached; funding rates are percentages, open interest in USD per market and BTC for venue totals. Live. 5 endpoints. This aggregates derivatives across all exchanges; for a single exchange's raw order book use that exchange's API.
api.oanor.com/cryptoderivatives-api
Luxembourg Stock Exchange API
Live equity market data for the Luxembourg Stock Exchange (LuxSE), one of Europe's leading listing venues, with quotes priced in EUR. Pull real-time quotes for specific listings — ArcelorMittal, ENGIE, RTL Group, Aperam, Reinet Investments and the rest of the equity board — with last price, day change percentage and absolute change, open, high, low, traded volume, market capitalisation and sector; run a ranked screener sorted by market cap, day change, volume or price; search the listings by company name; or read a market summary with the number of advancers, decliners and unchanged stocks, total market capitalisation and the day top gainer, top loser and most-active share. Distinct from other regional-exchange APIs on the marketplace — this surfaces the Luxembourg Stock Exchange equity board specifically.
api.oanor.com/luxembourg-stock-api
Cyprus Stock Exchange API
Live equity market data for the Cyprus Stock Exchange (CSE), the regulated securities market in Nicosia, all priced in EUR. Pull real-time quotes for specific listings — Bank of Cyprus, Eurobank, Vassiliko Cement, Demetra Holdings and the rest of the board — with last price, day change percentage and absolute change, open, high, low, traded volume, market capitalisation and sector; run a ranked screener sorted by market cap, day change, volume or price; search the listings by company name; or read a market summary with the number of advancers, decliners and unchanged stocks, total market capitalisation and the day top gainer, top loser and most-active share. Distinct from other regional-exchange APIs on the marketplace — this surfaces the Cyprus Stock Exchange specifically (not the Colombo CSE).
api.oanor.com/cyprus-stock-api
Front-Month Futures Quotes API
Live continuous front-month (1!) quotes for the major liquid futures across every asset class, with no key: precious & base metals (gold, silver, copper, platinum), energy (WTI crude, natural gas, gasoline, heating oil), grains (wheat, corn, soybeans), softs (coffee, sugar, cocoa, cotton), livestock, equity-index (E-mini S&P 500, Nasdaq, Dow, Russell), interest-rate (2/5/10/30-year Treasuries) and FX futures from COMEX, NYMEX, CBOT, CME, CME_MINI and ICE US. Get a per-contract quote by short code (GC, CL, ES, ZW) with last price, % change and intraday OHLC, a full cross-asset board, or a per-category cut — a curated board of the contracts that actually trade.
api.oanor.com/cmefutures-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for Trading Risk API?
What's the rate limit for Trading Risk API?
How much does Trading Risk API cost?
Can I cancel my subscription anytime?
Is Trading Risk API GDPR-compliant?
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 inNew thread
·
-
Provider answer
🔒 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 inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.