Exchange rates

YPI Integrate · Version v2

курсы валюткурсвалютыконвертациятенгерубльдоллар

Exchange rates for the installation — from the Fixer, currencyapi and Open Exchange Rates aggregators, and the official rates of the National Bank of Kazakhstan and the Central Bank of Russia. Each source is fetched by its own procedure of the «Exchange rates — fetching» package on a schedule, once an hour. - Aggregators: take out a subscription with the provider and enter the API key in the connection of its connector. Without a key the connector's schedule does not run and is marked «not configured». - Official rates come from the National Bank of Kazakhstan and Central Bank of Russia connectors; no key is needed. - To drop a source, switch its procedure's schedule off on the installation's schedules screen; it is switched back on there too. - Rates can also be fetched from your own process — call a procedure of the «Exchange rates — fetching» package.

What is inside

The contract: what each resource can be called with and what it answers. How it does it stays with its author.

Fixer — курсы валют

ConnectorAuthorization: api_key

Курсы валют Fixer (APILayer) внутри дня, к евро. Подписку и ключ API установка оформляет сама.

Connection parameters
  • Адрес APIbase_urlurl· required
  • Ключ APIapi_keysecret· required
Последние курсыlatest_ratesout

currencyapi — курсы валют

ConnectorAuthorization: api_key

Курсы валют currencyapi.com внутри дня, к доллару США. Подписку и ключ API установка оформляет сама.

Connection parameters
  • Адрес APIbase_urlurl· required
  • Ключ APIapi_keysecret· required
Последние курсыlatest_ratesout

Open Exchange Rates — курсы валют

ConnectorAuthorization: api_key

Курсы валют Open Exchange Rates к доллару США. Бесплатный тариф — 1000 запросов в месяц: хватает на забор раз в час, курсы только к доллару США. Подписку и ключ (App ID) установка оформляет сама.

Connection parameters
  • Адрес APIbase_urlurl· required
  • Ключ API (App ID)api_keysecret· required
Последние курсыlatest_ratesout

Нацбанк РК — официальные курсы

Connector

Официальные курсы валют Национального банка Республики Казахстан к тенге на сегодня. Ключ не нужен.

Connection parameters
  • Адресbase_urlurl· required
Последние курсыlatest_ratesout

ЦБ РФ — официальные курсы

Connector

Официальные курсы валют Центрального банка Российской Федерации к рублю — последние опубликованные. Ключ не нужен.

Connection parameters
  • Адресbase_urlurl· required
Последние курсыlatest_ratesout

Курсы валют — забор

Procedure library

По процедуре на каждый коннектор пакета «Курсы валют»: процедура спрашивает свой источник и заводит его курсы в установку. Каждая вызывается расписанием раз в час, а из процесса — операцией «Вызвать библиотечную процедуру».

Забрать курсы Fixerfetch_fixer
Забрать курсы currencyapifetch_currencyapi
Забрать курсы Open Exchange Ratesfetch_openexchangerates
Забрать курсы Нацбанка РКfetch_nbrk
Забрать курсы ЦБ РФfetch_cbr