DEV · local workspace

Formulas

These formulas define calculations exposed by current quote and market-data workflows. Decimal API values remain strings until the client enters an exact-decimal calculation.

Bundle price

For leg weights and endpoint rates :

invented

A four-leg bundle

Illustrative rates chosen only to demonstrate the arithmetic

For weights {PROMPT: 0.55, CACHE_READ: 0.20, CACHE_WRITE: 0.05, COMPLETION: 0.20} and rates 0.50, 0.10, 0.60, and 2.00 USD per MT:

<span><span style="color: undefined">0.55 × 0.50 + 0.20 × 0.10 + 0.05 × 0.60 + 0.20 × 2.00</span></span>
<span><span style="color: undefined">= 0.725 USD per MT</span></span>
<span><span style="color: undefined"></span></span>

Notional

Spot notional converts whole tokens to MT before applying the price:

Forward notional uses the MFT quantity directly:

Spread

For a two-sided book:

No midpoint or spread should be reported when either side is absent.

Demand index

The demand index combines bounded components as documented in Demand index. A generic weighted score is:

Weights sum to one. Component values are normalized to the scale declared by the response.

Forward unit ratio

A forward instrument can publish , its MT-per-MFT ratio:

This is an instrument unit relationship used for comparison. It is not a statement that external performance has occurred.