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