Back

#position-size

2 APIs with this tag

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

Forex Calculator API

Live foreign-exchange trading calculators computed from live ECB reference rates. The pip-value endpoint returns what one pip of a currency pair is worth, in the trader's account currency, for a given lot size. The position-size endpoint returns how many lots to trade to risk a fixed percentage of the account on a given stop-loss. The profit-loss endpoint returns the P&L of a trade from its entry, exit and direction. The margin endpoint returns the margin a position requires at a given leverage. All conversion to the account currency uses live exchange rates. Computed live, nothing stored. Distinct from raw FX-rate feeds — this turns rates into the pip values, position sizes, margins and P&L a trader acts on.

api.oanor.com/fxcalculator-api