> For the complete documentation index, see [llms.txt](https://200ok.gitbook.io/200ok-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://200ok.gitbook.io/200ok-documents/user-manual/built-in-functions/advanced/currencyrate.md).

# currencyRate

currencyRate() function is the Standard function available in 200OK.

**Description** : The currencyrate function returns the conversion rate based on the provided amount and conversion rate.

**Syntax** : fx\_currencyrate(amount,conversionRate)

**Example** : fx\_currencyrate(200,80) returns 2.5 as the response, indicating the converted amount based on the provided conversion rate.

Here we go with simple scenario using the above function.

**Scenario** : In a global finance application, users frequently need to calculate currency conversion rates for various transactions. Utilizing a specialized function, the system efficiently computes the conversion rate based on the provided amount and exchange rate, ensuring accurate financial transactions.

**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/eXXrmGoYzeIQ8QDZSqvocsI4_polYjPKYuZEG00tdp50SL4KMOkaF4pPZArUGG1mv_zGVtD0WMGK0hctHs8R0Ak6OQPghYPuAHtdcxTs8-n0hz4sbDC41KylxEPIiUiO9ANsYDCr4B-hPcmTgXahE_Y" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/uCfCxX-TqMgKz6feW3b1jVbJYJI7xwJRe2sH9SJ7eVxi8yN9mDOhNB1Esvi49jFArkhcOLiByi-42XatXTEOoW9UCkk-xtwIZGIsNTvHj7Rj0TXuRZXoYMjONrNkbDnc2y9VNTbzaECZR730r9MK3cM" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/6ItghIoMcQRXk3e-xACAbcKBjfhL-EPSukkdUa39Xn8TgM_-fpFCGpbF8Uld7Pr3Yq7Fc9I4XzseXz5RsMOxHuqfOUq6_lroY10aUpE1sJpjlG-EMufieOiyG-9YvnQb7AolKxdpTP9VUDZ_B-zQylY" alt=""><figcaption></figcaption></figure>
