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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user