---
title: "POST /api/rpc/queryInsuranceCurrencyEffect"
method: POST
path: "/api/rpc/queryInsuranceCurrencyEffect"
tags: ["insurance"]
---

# POST /api/rpc/queryInsuranceCurrencyEffect

`POST /api/rpc/queryInsuranceCurrencyEffect`

## Request

- Base URL: `https://21risk.com`
- URL: `https://21risk.com/api/rpc/queryInsuranceCurrencyEffect`
- Auth: OAuth 2 (client credentials, token URL `/api/v1/oauth/token`)

Measure how much exchange rates moved a period's TIV since the previous period. Returns the values per currency they were entered in (sites, amount in that currency, base-currency value, rate change and currency effect) and the currency effect per site and value key. Amounts are what each value counts toward TIV: as entered, except Business Interruption in a period that takes it as a base value, which is scaled by the site's BI period. The currency effect is the period's values at its own rates minus the same amounts at the previous period's rates.

## Request body

- object
  - `tenant` unknown, required
  - `period` string, required: Name of the Insurance period, for example "2025".

## Response `200`

Successful response

- object
  - `period` string, required
  - `previousPeriod` string, nullable, required: The period compared with, or null for the first period.
  - `currencies` object[], required: One entry per currency values are entered in, largest value first.
    - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KWD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAU' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL', required: The currency the values were entered in.
    - `sites` integer, required: Sites with a value entered in this currency. A site entering two currencies counts in both.
    - `amountInCurrency` number, required: The values in the currency itself, as they count toward TIV: as entered, except Business Interruption in a period that takes it as a base value, scaled by the site's BI period.
    - `value` number, required: The same values in base currency: this currency’s share of TIV.
    - `rateChange` number, nullable, required: How much one unit of the currency is worth in base currency compared with the previous period, as a fraction (0.05 = +5%). Null for the first period.
    - `currencyEffect` number, required: The part of the TIV change since the previous period caused by exchange rates, in base currency.
  - `effects` object[], required: The currency effect per site and value key, in base currency. Values without an effect are left out. Includes the period's other values, which are not part of TIV or of the currency breakdown.
    - `siteId` string, required
    - `key` string, required: The value: a built-in key such as buildings, or the id of one of the period's own value columns (see queryInsurancePeriod's valueColumns).
    - `currencyEffect` number, required

---

[API](https://skmtc.dev/21risk/apis/21risk-api.md) · [All operations](https://skmtc.dev/21risk/apis/21risk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/21risk/apis/21risk-api/revisions/273a727dfd49?raw)
