|
|
@ -449,13 +449,16 @@ export class ExchangeRateDataService {
|
|
|
|
factors[format(date, DATE_FORMAT)] = factor;
|
|
|
|
factors[format(date, DATE_FORMAT)] = factor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch {
|
|
|
|
} catch {
|
|
|
|
Logger.error(
|
|
|
|
let errorMessage = `No exchange rate has been found for ${currencyFrom}${currencyTo} at ${format(
|
|
|
|
`No exchange rate has been found for ${currencyFrom}${currencyTo} at ${format(
|
|
|
|
|
|
|
|
date,
|
|
|
|
date,
|
|
|
|
DATE_FORMAT
|
|
|
|
DATE_FORMAT
|
|
|
|
)}. Please complement market data for ${DEFAULT_CURRENCY}${currencyFrom} and ${DEFAULT_CURRENCY}${currencyTo}.`,
|
|
|
|
)}. Please complement market data for ${DEFAULT_CURRENCY}${currencyFrom}`;
|
|
|
|
'ExchangeRateDataService'
|
|
|
|
|
|
|
|
);
|
|
|
|
if (DEFAULT_CURRENCY !== currencyTo) {
|
|
|
|
|
|
|
|
errorMessage = `${errorMessage} and ${DEFAULT_CURRENCY}${currencyTo}`;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logger.error(`${errorMessage}.`, 'ExchangeRateDataService');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|