Skip to content

Currency rates

Guillaume Alzieu requested to merge g-temp-pr into g-temp-pr-less

Currency rates

This adds the workflow to declare and fetch the historical currency rates data. The rates data is taken from https://data.bis.org/.

The rates are used to compute the transfert amounts in all the supported currencies. The supported currencies are the ones appearing in the Transfert dataset (this might change in the future).

Workflow

The review should be made on the whole workflow, such as performed by the currency_rates_workflow function:

  • Fetch and ingest the rates from the API according to the Transfert and Currency database records - update_currency_rates
  • Calculate average rates over month and year - compute_average_rates
  • Compute the transfert converted amounts for all currencies - compute_transfert_amounts

Merge request reports

Loading