Explore the developer beta and its explicit calculation contracts. All documentation is public; no account is needed to read it.
Developer beta · Use the deployed gateway base URL shown below. Explicit contract metadata is required; the custom api.fynxfinanceworld.com hostname is not configured.
START HERE
Availability
Available in the beta
Risk API: six calculations using caller-supplied Forex contract and conversion data. Indicators API: eight indicators and multi-symbol screening on your price data. Market Hours API: exchange status, holidays and forex sessions. Portfolio API: performance, drawdown and exposure analytics. Prop Firm Rules API: USD phase accounts, explicit rule versions, ordered events, loss limits, eligibility and audit history.
Free workspace: signup, separate test/live keys, playground, usage, request history, spending caps and support tickets.
Coming later
A verified broker instrument catalog, native broker connections, additional asset classes, liquidation and options. Licensed market-data products (forex rates, quotes, economic calendar, news, crypto data) and alerts with webhooks are in development.
Automatic funding and payouts are outside this beta.
The developer workspace supports signup, keys, real calculations, rule sets and account-event history. Plans: Free (1,000 calls/month), Developer ($19/month, 25,000 calls) and Business ($99/month, 250,000 calls), with opt-in extra calls per 1,000. See pricing.
Forex is the initial Risk focus. Broker-specific symbol specifications are still being verified. Liquidation and options endpoints are deferred.
Your first request
Create an account through Get API Key. Verify your email before creating keys.
Create a test key in the developer dashboard.
Store the key in a server environment variable named FYNX_API_KEY.
Send decimal inputs as strings and inspect the result and warnings.
This example assumes EURUSD, 100,000 units per lot and a 0.01-lot step. Send contract_size, quote_to_account_rate, lot_step and minimum_lot explicitly. These values are caller supplied, not broker verified.
Authentication header: Authorization: Bearer <API_KEY>. Test and live environments have separate keys. Keys belong to your workspace, so rotation does not remove accounts or rule sets.
Each key carries scopes that limit which products it can call: risk:calculate, propfirm:read, propfirm:write, indicators:calculate, markets:read and portfolio:calculate. New keys receive every scope. A request outside a key's scopes returns 403 permission_denied.
Keep private keys on your server. Browser and mobile apps should call your backend rather than embed an unlimited FYNX secret.
Risk endpoint reference
All Risk routes use POST with a JSON body. The complete schema is in the OpenAPI document.
Realized P&L must be net of applicable costs. Duplicate keys with an identical payload return the original result; changed payloads or new out-of-order events produce a conflict. For the current beta, an account event uses the field names shown above. Equity marks omit realized_pnl; all events require the next sequence number and current open-position count.
API 6
Indicators & screening
Send your own price series and FYNX returns indicator values aligned to your input. Warm-up positions are null. Numbers may be JSON numbers or decimal strings; results are decimal strings rounded to decimals (default 8, maximum 12). Up to 2,000 points per series, within the 20 KB request limit.
Method / route
Purpose
POST /v1/indicators/sma
Simple moving average of values.
POST /v1/indicators/ema
Exponential moving average, seeded with the SMA of the first period.
POST /v1/indicators/rsi
Relative strength index using Wilder's smoothing (default period 14).
POST /v1/indicators/macd
MACD line, signal line and histogram (defaults 12, 26, 9).
POST /v1/indicators/bollinger
Middle, upper and lower bands plus bandwidth, using population deviation.
POST /v1/indicators/atr
Average true range from candles, Wilder's smoothing.
POST /v1/indicators/stochastic
%K and %D from candles, with optional %K smoothing.
POST /v1/indicators/vwap
Cumulative volume-weighted average price from candles with volume.
POST /v1/indicators/screen
Test up to 10 conditions against the latest bar of up to 50 symbols.
Screening example
Each condition compares a left operand with a right operand or a fixed value. Operands are close, change_percent (with lookback), sma, ema or rsi (with period). Operators: <, <=, >, >=, crosses_above, crosses_below. Set match to all (default) or any.
Candle routes take candles: objects with high, low, close and, for VWAP, volume. FYNX does not fetch prices for these routes; results are only as good as the data you send.
API 7
Market hours & holidays
Regular cash-equity sessions and published holiday calendars for NYSE, Nasdaq, LSE, TSX, TSXV, HKEX and TSE, plus the four forex liquidity sessions. Pass an optional at timestamp (ISO 8601 with a timezone) to ask about another moment; otherwise the current time is used. Times are returned in UTC.
Method / route
Purpose
POST /v1/markets/status
Open, closed, lunch break or unknown for each exchange, with the next open and close.
POST /v1/markets/holidays
Holidays and early closes for one exchange and year, with coverage status.
POST /v1/markets/sessions
Sydney, Tokyo, London and New York FX sessions, overlaps and the weekend gap.
POST /v1/markets/exchanges
Supported exchanges, local hours and calendar coverage.
Coverage is limited to published calendars. A date outside coverage returns status: "unknown" with a warning, never open. Pre-market, after-hours, auctions and emergency closures are not included; confirm critical decisions with the exchange.
API 8
Portfolio analytics
Performance, drawdown and exposure metrics from trades, equity points and positions you supply. Money results use decimals (default 2).
Method / route
Purpose
POST /v1/portfolio/performance
Win rate, profit factor, payoff ratio, expectancy, streaks and average R from up to 1,000 closed trades.
POST /v1/portfolio/drawdown
Maximum and current drawdown, recovery point and longest drawdown; volatility, Sharpe and Sortino when periods_per_year is sent.
POST /v1/portfolio/exposure
Gross, net, long and short exposure, leverage, concentration, asset-class totals and FX currency legs for up to 500 positions.
Send quote_to_account_rate for positions not priced in the account currency. Sharpe and Sortino use the sample deviation of period returns and an optional risk_free_rate_percent; fewer than 30 returns produce a warning.
API 11 / PREVIEW
Finance tools
Preview — activation pending. Finance Tools endpoints are not available yet. The workspace will show the scope and calculations after the service is activated; the examples below document the upcoming release. Existing API products remain available.
Seven calculations on numbers you supply. Requires the finance:calculate scope. Results use decimals (default 2); loan amounts are always in cents. Loan principal and extra payments accept at most two decimal places. Results outside the supported calculation range are rejected.
Method / route
Purpose
POST /v1/finance/compound-growth
Future value of a lump sum plus regular contributions, any compounding from yearly to daily, with a year-by-year schedule.
POST /v1/finance/loan-payment
Monthly payment, total interest and an optional amortisation schedule; extra payments show months saved.
POST /v1/finance/cagr
Compound annual growth rate, total return and growth multiple between two values.
POST /v1/finance/kelly
Full and fractional Kelly percentage, expectancy in R and break-even win rate, with an optional dollar amount.
POST /v1/finance/drawdown-recovery
Gain needed to get back to a peak, the dollars to recover and how many months at a given monthly return.
POST /v1/finance/trade-pnl
Gross and net P/L of a closed position in any asset, return on notional and account, and R multiple.
POST /v1/finance/real-return
Inflation-adjusted return (exact Fisher relation and the quick approximation) and value in today's money.
Returns full_kelly_percent 17.50, applied_kelly_percent 8.75 and applied_risk_amount 875.00. compound-growth accepts 1, 2, 4, 12, 52 or 365 compounding periods a year for up to 100 years; loan-payment accepts up to 600 months. Rates are percentages, so 6.5 means 6.5%.
API 12 / PREVIEW
Options
Preview — activation pending. Options endpoints go live with the next API release; the workspace shows the scope and examples once activated.
Five European-option calculations on numbers you supply. Requires the options:calculate scope. days_to_expiry is calendar days (time = days / 365); volatility_percent, risk_free_rate_percent and dividend_yield_percent are annual percentages, continuously compounded (rates default to 0). Prices use decimals (default 4); greeks always use 6. Theta is per calendar day; vega and rho are per one percentage point. contract_multiplier defaults to 100.
Method / route
Purpose
POST /v1/options/price
Black-Scholes-Merton price, intrinsic and time value, greeks and probability in the money.
POST /v1/options/implied-volatility
Volatility that reproduces option_price, with greeks at that volatility.
POST /v1/options/payoff
Profit at expiry for 1–8 call, put and stock legs: max profit, max loss, break-evens and a payoff table.
POST /v1/options/probability
Probability of finishing above/below and of touching each of up to 20 prices.
POST /v1/options/expected-move
Expected move and 1 and 2 standard deviation ranges.
Returns price 0.8086, greeks.delta −0.220869 and probability_in_the_money_percent 26.51. Send option_price instead of volatility_percent to /implied-volatility to solve for volatility; a price outside no-arbitrage bounds returns 422 with code no_solution. In /payoff, option legs need strike and premium, stock legs need entry_price (quantity is shares); unlimited profit or loss is returned as null with max_profit_unlimited or max_loss_unlimited set to true.
TOOLS
OpenAPI & SDKs
The full contract for every route, request schema, required scope, error and example is published as an OpenAPI 3.1 document. Import it into Postman, Insomnia or a code generator.
OpenAPI 3.1
26 paths across Risk, Indicators, Market Hours, Portfolio and Prop Firm Rules.
import { Fynx } from './fynx.mjs';
const fynx = new Fynx(process.env.FYNX_API_KEY);
const { result } = await fynx.markets('status', { exchanges: ['NYSE', 'LSE'] });
console.log(result.exchanges.map(e => `${e.exchange}: ${e.status}`));
Python
import os
from fynx import Fynx, FynxError
fynx = Fynx(os.environ["FYNX_API_KEY"])
try:
rsi = fynx.indicators("rsi", {"values": closes, "period": 14})["result"]
print(rsi["latest"])
except FynxError as e:
print(e.status, e.code, e.request_id)
Errors and retries
JSON · example
{
"error": {
"code": "invalid_stop_loss",
"message": "Stop loss must be on the losing side of entry."
}
}
HTTP status
Meaning
400
Invalid request
401 / 403
Missing or invalid credentials / insufficient access
404
Resource not found or not accessible
409
Conflicting retry, duplicate source event or ordering conflict
422
Invalid inputs or missing required instrument metadata
429
Rate or usage limit reached; follow supplied reset/retry guidance
5xx
Temporary server error; retry with backoff and the same event idempotency key
Event ordering and overnight positions
Submit each event with the next sequence number, a unique source_event_id and an idempotency_key. A retry with the same fields returns the original result without using another monthly call; JSON field order does not matter. Changing the payload under the same key is rejected.
When a position remains open across the daily reset, first submit a boundary_snapshot exactly at the next reset instant. Set unrealized_pnl_after to the source equity mark at that instant and preserve open_position_count. The snapshot carries balance forward and checks the prior daily loss limit before resetting. Submit one snapshot for every crossed reset; do not estimate missing source values.
Accepted events contain engine_version, payloadHash and chained event hashes for integrity checks. These records reflect submitted data; they do not establish broker completeness or payout approval. Corrections require a separately reviewed recovery process.
Successful calls use the monthly allowance. Failed calls and event replays do not, but authenticated attempts still use the per-second rate limit. Your lower saved request cap is enforced atomically across all keys.
Run the integration check
For account rules, download the Prop Firm Rules Node quickstart and run node prop-firm-quickstart.mjs with your test key. It creates one clearly named synthetic rule set and account, checks two ordered events, an identical retry, a conflicting retry, status and linked audit records.
This check uses six successful test calls and retains its test records. Run it in a quiet test workspace so the usage comparison is meaningful. Do not blindly retry account or rule creation after a timeout; inspect the workspace for the printed run name first. Internal script success does not count as an external beta result.
Use Node.js 22 or newer and a test key from your developer workspace. Download the Node quickstart, set FYNX_API_KEY in your local environment, and run node quickstart.mjs. Keep the key out of source files and browser code.
The script verifies a 0.33 lot result and the expected validation error for an invalid stop. It consumes one successful test call. The example contract values are illustrative. If you get stuck, submit a support ticket with the request ID and your runtime; never include your key.
Limits and assumptions
Need help? Use Settings & support in your workspace. Include the request ID and expected result, never your API key. No support response-time or uptime SLA is offered in this beta.
Calculation outputs depend on your inputs. There is no live pricing, trade execution or investment advice. Modeled stop losses exclude unmodeled execution costs and cannot guarantee fills.
Prop evaluations reflect accepted source events. Missing observations, stale marks or absent daily-boundary data must be surfaced before a definitive completion decision.
Rate limits, usage allowance and paid activation status are described on the pricing page. Try actual requests in the developer workspace. Download the OpenAPI document and SDKs. Live service status: status page.