# `mix forex.export.ninety`
[🔗](https://github.com/greven/forex/blob/1.1.2/lib/mix/tasks/forex.export.ninety.ex#L1)

Fetch and export the last ninety days exchange rates
from the European Central Bank to a file.

  mix forex.export.ninety

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: Jason

Refer to `Forex.json_library/0` for more information.

## Examples

  * `mix forex.export.ninety`
  * `mix forex.export.ninety --base USD`
  * `mix forex.export.ninety --symbols USD,GBP`
  * `mix forex.export.ninety --output priv/data/forex`

## Arguments

  * `--base`      - The base currency to use. Defaults to `EUR`.
  * `--symbols`   - The currencies to fetch. Defaults to all currencies.
  * `--output`    - The output directory. Defaults to `priv/data/forex`.
  * `--help`      - Show this help message.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
