# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://200ok.gitbook.io/200ok-documents/user-manual/built-in-functions/advanced/currencyrate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
