OpenForex / KNOWLEDGE
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.

  1. Reproduce the example

    Open the lab or install the downloaded package. Keep the input values as decimal strings.

    npm 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'
    Try it in the browser
  2. 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 walkthrough
  3. Keep 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

Choose the right interface

Accessibility settings

Adjust the display for comfortable reading. Changes apply immediately to every page.

Light and dark modes use high-contrast colors.

Preferences are saved only in this browser. Browser zoom remains available.