# exchange_rate

Name exchange_rate
Type callback
Version 1.0
Since 2020-01-01

# Prologue

Exchange rate callback downloads current exchange rates for given currency and saves it to a process variable. All currency codes are in three letter ISO 4217 standard.

# Configuration

events:

	# Event's name
	on_process_start:

		# Callback name
		exchange_rate:
			config:

				# Required
				# json variable
				variable: exchange_rates_usd

				# Required
				# Currently supported are:
				# AED, ARS, AUD, BGN, BRL, BSD, CAD, CHF, CLP, CNY, COP, CZK, DKK, DOP, EGP, EUR, FJD, GBP, GTQ, HKD, HRK, HUF, IDR, ILS, INR, ISK,
				# JPY, KRW, KZT, MXN, MYR, NOK, NZD, PAB, PEN, PHP, PKR, PLN, PYG, RON, RUB, SAR, SEK, SGD, THB, TRY, TWD, UAH, USD, UYU, VND, ZAR
				currency: USD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

# Data

Data stored in variable are in following format:

{
    "USD": 1,
    "AED": 3.67209,
    "ARS": 58.222857,
    "AUD": 1.461768,
    "BGN": 1.755918,
    "BRL": 4.153485
}
1
2
3
4
5
6
7
8