mix forex.export.latest (Forex v0.2.2)
View SourceFetch and export the latest exchange rates from the European Central Bank to a file.
mix forex.export.latest
By default the JSON encoder used is the Elixir standard library JSON encoder (only
support in Elixir 1.18+). You can change this by setting the :json_library option
in your config, for example to use Jason instead:
config :forex, json_library: JasonRefer to Forex.json_library/0 for more information.
Examples
mix forex.export.latestmix forex.export.latest --base USDmix forex.export.latest --symbols USD,GBPmix forex.export.latest --output priv/data/forex
Arguments
--base- The base currency to use. Defaults toEUR.--symbols- The currencies to fetch. Defaults to all currencies.--output- The output directory. Defaults topriv/data/forex.--help- Show this help message.