currency-basket
index
fx
fixed-amount-method
rebase

Currency Basket Index

Values a currency basket by the fixed-amount method, where currency amounts are fixed at a rebase date and the live weights float daily with FX. Two modes: valuation from amounts already fixed, returning the index value, each component's live weight and its drift from any stated target; and derivation, which turns target weights, a rebase-date index value and the rebase-date FX rates into the fixed amounts those weights imply, so amounts are an output of the rebase rather than an input to it. Target weights that do not sum to one are refused rather than silently normalized. Integer-quantity baskets are supported through an amount scale. Per-pair rates may cite the upstream oracle prints they came from. Every FX rate, fixed amount and target weight is supplied and asserted, never fetched (zero-egress); this computes what the stated method yields on the stated numbers, never that those numbers are the correct rates for the stated date.

Tool URL: https://ainumbers.co/chaingraph/art-561-currency-basket-index.html

post/v1/tools/currency_basket_index

Request

  • Base URL: https://ainumbers.co
  • URL: https://ainumbers.co/v1/tools/currency_basket_index
  • Auth: none declared

Request body

modestring
basket_idstring
as_of_datestring
index_value_at_rebasenumber
amount_scalenumber
prior_index_valuenumber

Response

Successful tool execution result

basket_idstring nullable
as_of_datestring nullable
modestring nullable
structural_errorstring nullable
index_valuenumber nullable
component_countnumber
dominant_contributorstring nullable
dominant_contribution_pctnumber nullable
max_drift_from_target_pctnumber nullable
basket_shift_pctnumber nullable
target_weight_sumnumber nullable
amount_scalenumber
fencestring

Changes

No recorded changes to this operation across all 1 revision of this API.