Home / Developer hub
FROM A FIRST RESULT TO A REPRODUCIBLE SYSTEM
Build with clear boundaries.
Start with the calculation toolkit, preserve the evidence, and connect external data only after defining its method and validation policy.
AVAILABLE · TVX SDK 0.1.0
A small calculation core. Explicit inputs.
Decimal-string conversion, snapshot validation, and documented error behavior. No runtime dependencies.
Reproduce the example
Open the lab or install the downloaded package. Keep the input values as decimal strings.
Try it in the browsernpm install ./openforex-tvx-0.1.0.tgz import { calculate } from '@openforex/tvx'; const evidence = calculate({ amount: '120.00', fromValue: '0.50', toValue: '6.00', decimals: 2, rounding: 'half-even' }); // evidence.result === '10.00'Make failure behavior part of the design
Test zero denominators, invalid decimals, missing observations, stale data, and rounding boundaries before integrating a feed.
Follow the integration walkthroughKeep a reproducible evidence record
Record the source, method revision, timestamps, numeric policy, and result. Separate a computed amount from any service that executes transactions.
Use the evidence review guide
