{"kind":"x402/financial-precision-utils","profileVersion":"financial-precision/v1","operations":[{"operation":"amortisation","summary":"periodic amortisation schedule with a level payment, per-period interest/principal split, running balance, and a schedule that closes at exactly zero when the engine computed the payment","params":{"principal":"decimal > 0 (required)","annualRate":"decimal, may be negative (required)","periods":"integer in [1, 3600] (required)","periodsPerYear":"integer in [1, 1000] (default 12)","rateBasis":"one of ['nominal', 'effective-annual'] (default 'nominal')","paymentTiming":"one of ['end', 'beginning'] (default 'end')","payment":"decimal > 0 (optional — supply your own payment and the schedule is reported honestly even if it does not close)"}},{"operation":"irr","summary":"internal rate of return from a cash-flow series, with multi-root detection and the undiscounted MOIC","params":{"cashFlows":"array of {amount, t?} or bare amounts; t is an integer number of periods (default: the array index)","min":"2 entries, at most 500, spanning at least 2 distinct periods"}},{"operation":"fx_convert","summary":"convert an amount at a CALLER-SUPPLIED rate; the caller declares the rate's direction so the inverse is never applied by accident","params":{"amount":"decimal (required)","from":"3-letter currency code (required)","to":"3-letter currency code (required)","rate":"decimal > 0 (required — no rate feed is consulted)","rateDefinition":"one of ['from-to', 'to-from'] (default 'from-to')","asOf":"string (optional) — your rate timestamp"}},{"operation":"atomic_convert","summary":"convert between a whole-unit amount and an integer atomic count, with an exactness flag","params":{"amount":"decimal (required)","fromDecimals":"integer in [0, 18] (required)","toDecimals":"integer in [0, 18] (default = fromDecimals)","direction":"'to-atomic' or 'to-whole' (default 'to-atomic')"}},{"operation":"percent_change","summary":"percentage change between two values; a zero base is reported as undefined, never as a number","params":{"from":"decimal (required) — the base","to":"decimal (required) — the new value"}},{"operation":"tick_round","summary":"round a price to a tick size, with the tie rule published alongside the answer","params":{"price":"decimal (required)","tickSize":"decimal > 0 (required unless unit is given)","unit":"one of ['cent', 'pip', 'pipette', 'point'] (optional)","mode":"'nearest', 'up' or 'down' (default 'nearest')"}}],"conventions":{"roundingMode":"ROUND_HALF_EVEN","outputScale":10,"moneyScale":2,"paymentScale":2,"workingPrecision":50,"irrScanPoints":400,"irrRelTolerance":"1E-10","authoritativeField":"decimal strings; float mirrors are advisory"},"note":"Financial-Precision-Utils boundary: every figure here is the EXACT DECIMAL result of the caller's own numbers under the published conventions. No price feed, FX feed, rate feed, calendar, database or network was consulted, and no figure was estimated, extrapolated or carried forward. The FX rate is CALLER-SUPPLIED and this service verifies none of it. The IRR is the root of the caller's cash-flow series under the published method; where more than one root exists the engine reports CANNOT_DETERMINE and lists every root rather than silently choosing one. Decimal strings are authoritative; the parallel float mirrors are advisory only and may lose precision in a JSON parser. This service NEVER settles, debits, or moves funds."}