{"openapi":"3.1.0","info":{"title":"Currency Index API","version":"1.0.0","description":"Live currency-index maths that FX desks run to turn a set of exchange rates into a single index value, computed on demand from the rates you pass in — no key, no cache, nothing stored. The dxy endpoint computes the US Dollar Index (USDX) from its six component rates using the official ICE weights and formula — feed in EUR/USD, USD/JPY, GBP/USD, USD/CAD, USD/SEK and USD/CHF and get the index value the way the exchanges calculate it. The index endpoint builds an arbitrary weighted index from your own components: geometric (the standard for currency indices) or arithmetic, with a scaling constant and negative weights for inversely-quoted pairs. The basket endpoint computes a trade-weighted index normalised to 100, showing how a currency has moved against a basket from a set of reference rates — above 100 means it strengthened. This is an index-construction engine, distinct from published effective-exchange-rate feeds and strength meters: you supply the rates and weights and it returns the index, deterministically. Works for any custom basket. Computed locally, so it is instant and private. Ideal for FX dashboards, custom dollar/euro indices, back-tests and macro tools. Live, nothing stored. 3 compute endpoints. For published effective-exchange-rate data use a central-bank or BIS API.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/currencyindex-api","description":"oanor gateway"}],"tags":[{"name":"Index"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/basket":{"get":{"operationId":"get_v1_basket","tags":["Index"],"summary":"Trade-weighted index normalised to 100","description":"","parameters":[{"name":"components","in":"query","required":true,"description":"current:base:weight triplets, comma-separated","schema":{"type":"string"},"example":"1.08:1.10:0.5,150:148:0.5"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/dxy":{"get":{"operationId":"get_v1_dxy","tags":["Index"],"summary":"US Dollar Index from its 6 components","description":"","parameters":[{"name":"eurusd","in":"query","required":true,"description":"EUR/USD rate","schema":{"type":"string"},"example":"1.08"},{"name":"usdjpy","in":"query","required":true,"description":"USD/JPY rate","schema":{"type":"string"},"example":"150"},{"name":"gbpusd","in":"query","required":true,"description":"GBP/USD rate","schema":{"type":"string"},"example":"1.27"},{"name":"usdcad","in":"query","required":true,"description":"USD/CAD rate","schema":{"type":"string"},"example":"1.37"},{"name":"usdsek","in":"query","required":true,"description":"USD/SEK rate","schema":{"type":"string"},"example":"10.5"},{"name":"usdchf","in":"query","required":true,"description":"USD/CHF rate","schema":{"type":"string"},"example":"0.91"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/index":{"get":{"operationId":"get_v1_index","tags":["Index"],"summary":"Custom weighted index (geometric/arithmetic)","description":"","parameters":[{"name":"components","in":"query","required":true,"description":"rate:weight pairs, comma-separated","schema":{"type":"string"},"example":"1.08:-0.576,150:0.136"},{"name":"method","in":"query","required":false,"description":"geometric (default) or arithmetic","schema":{"type":"string"},"example":"geometric"},{"name":"constant","in":"query","required":false,"description":"Scaling constant (default 1)","schema":{"type":"string"},"example":"50.14348112"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":4300,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":830,"monthly_call_quota":87000,"rps_limit":6,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2380,"monthly_call_quota":455000,"rps_limit":18,"hard_limit":true},{"slug":"business","name":"Business","price_cents_month":5600,"monthly_call_quota":2780000,"rps_limit":45,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/currencyindex-api"}