# Котировки валют

## Получить список сервисов и их котировки

<mark style="color:blue;">`GET`</mark> `https://api.waix.ru/currencies`

Кеш данных составляет *6 часов*, т.е в момент выполнения запроса будут получены актуальные котировки и помещены в кэш нашим сервером на *6 часов*. Значение индекса **average** является средним показателем котировок по всем сервисам. Используйте данный запрос если вам необходимо отображать на сайте актуальный курс, вы так же можете прибавлять к нему свой коэффициент.

{% tabs %}
{% tab title="200: OK Результат запроса" %}

```json
{
   "currencylayer.com":{
      "timestamp":1691339763,
      "base":"USD",
      "data":{
         "RUB":95.875038,
         "CNY":7.170304
      },
      "values":{
         "RUB":"13.371",
         "USD":"0.139"
      }
   },
   "cbr-xml-daily.ru":{
      "timestamp":1691182800,
      "base":"RUB",
      "data":{
         "USD":0.0105476776,
         "CNY":0.075898
      },
      "values":{
         "RUB":"13.175",
         "USD":"0.138"
      }
   },
   "openexchangerates.org":{
      "timestamp":1691337618,
      "base":"USD",
      "data":{
         "CNY":7.1703,
         "RUB":95.874996
      },
      "values":{
         "RUB":"13.371",
         "USD":"0.139"
      }
   },
   "exchangeratesapi.io":{
      "timestamp":1691339763,
      "base":"EUR",
      "data":{
         "CNY":7.905166,
         "RUB":105.700974,
         "USD":1.102487
      },
      "values":{
         "RUB":"13.371",
         "USD":"0.139"
      }
   },
   "average":{
      "timestamp":1691339770,
      "data":{
         "RUB":13.322000000000001,
         "USD":0.13875
      }
   }
}
```

{% endtab %}
{% endtabs %}


---

# 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://doc.waix.ru/expand/currencies.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.
