mix forex.export.historic (Forex v0.2.2)
View SourceFetch and export the historic exchange rates from the European Central Bank to a file.
mix forex.export.historic
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.historicmix forex.export.historic --base USDmix forex.export.historic --symbols USD,GBPmix forex.export.historic --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.