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 установка оформляет сама.
- Адрес APIbase_urlurl· required
- Ключ APIapi_keysecret· required
currencyapi — курсы валют
ConnectorAuthorization: api_keyКурсы валют currencyapi.com внутри дня, к доллару США. Подписку и ключ API установка оформляет сама.
- Адрес APIbase_urlurl· required
- Ключ APIapi_keysecret· required
Open Exchange Rates — курсы валют
ConnectorAuthorization: api_keyКурсы валют Open Exchange Rates к доллару США. Бесплатный тариф — 1000 запросов в месяц: хватает на забор раз в час, курсы только к доллару США. Подписку и ключ (App ID) установка оформляет сама.
- Адрес APIbase_urlurl· required
- Ключ API (App ID)api_keysecret· required
Нацбанк РК — официальные курсы
ConnectorОфициальные курсы валют Национального банка Республики Казахстан к тенге на сегодня. Ключ не нужен.
- Адресbase_urlurl· required
ЦБ РФ — официальные курсы
ConnectorОфициальные курсы валют Центрального банка Российской Федерации к рублю — последние опубликованные. Ключ не нужен.
- Адресbase_urlurl· required
Курсы валют — забор
Procedure libraryПо процедуре на каждый коннектор пакета «Курсы валют»: процедура спрашивает свой источник и заводит его курсы в установку. Каждая вызывается расписанием раз в час, а из процесса — операцией «Вызвать библиотечную процедуру».