[[inputs.http]]
name_override = "currencies"
urls = ["https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=eur"]
data_format = "json"
tagexclude = ["url"]
json_query = "ethereum"
[inputs.http.tags]
from = "ETH"
to = "EUR"
urls = ["https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd"]
to = "USD"
urls = ["https://api.coingecko.com/api/v3/simple/price?ids=chia&vs_currencies=eur"]
json_query = "chia"
from = "XCH"
urls = ["https://api.coingecko.com/api/v3/simple/price?ids=chia&vs_currencies=usd"]
[[processors.rename]]
namepass = ["currencies"]
[[processors.rename.replace]]
field = "eur"
dest = "value"
field = "usd"