also include inverse and equal rates during process
This commit is contained in:
parent
d382c332e3
commit
b9e4892c5d
1 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ from typing import List
|
|||
from money.currency import Currency
|
||||
from xecd_rates_client import XecdClient
|
||||
|
||||
from xexe.exchange_rates import ExchangeRates
|
||||
from xexe.exchange_rates import ExchangeRates, add_equal_rates, add_inverse_rates
|
||||
from xexe.rate_fetching import MockRateFetcher, RateFetcher, XERateFetcher
|
||||
from xexe.rate_writing import CSVRateWriter, RateWriter
|
||||
from xexe.utils import DateRange, generate_currency_and_dates_combinations
|
||||
|
|
@ -115,6 +115,9 @@ def obtain_rates_from_source(
|
|||
|
||||
rates.add_rate(rate)
|
||||
|
||||
rates = add_inverse_rates(rates)
|
||||
rates = add_equal_rates(rates)
|
||||
|
||||
return rates
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue