Feature/increase robustness if live data is missing (#1884)

* Continuously persist today's market data

* Add fallback to historical market data if data provider does not provide live data

* Update changelog
This commit is contained in:
Thomas Kaul
2023-04-22 14:43:57 +02:00
committed by GitHub
parent 32956ae04c
commit aafedd5f75
8 changed files with 187 additions and 54 deletions

View File

@@ -152,6 +152,13 @@ export function getNumberFormatGroup(aLocale?: string) {
}).value;
}
export function getStartOfUtcDate(aDate: Date) {
const date = new Date(aDate);
date.setUTCHours(0, 0, 0, 0);
return date;
}
export function getSum(aArray: Big[]) {
if (aArray?.length > 0) {
return aArray.reduce((a, b) => a.plus(b), new Big(0));