|
|
@ -14,7 +14,12 @@ import {
|
|
|
|
DERIVED_CURRENCIES,
|
|
|
|
DERIVED_CURRENCIES,
|
|
|
|
PROPERTY_DATA_SOURCE_MAPPING
|
|
|
|
PROPERTY_DATA_SOURCE_MAPPING
|
|
|
|
} from '@ghostfolio/common/config';
|
|
|
|
} from '@ghostfolio/common/config';
|
|
|
|
import { DATE_FORMAT, getStartOfUtcDate } from '@ghostfolio/common/helper';
|
|
|
|
import {
|
|
|
|
|
|
|
|
DATE_FORMAT,
|
|
|
|
|
|
|
|
getCurrencyFromSymbol,
|
|
|
|
|
|
|
|
getStartOfUtcDate,
|
|
|
|
|
|
|
|
isDerivedCurrency
|
|
|
|
|
|
|
|
} from '@ghostfolio/common/helper';
|
|
|
|
import { UniqueAsset } from '@ghostfolio/common/interfaces';
|
|
|
|
import { UniqueAsset } from '@ghostfolio/common/interfaces';
|
|
|
|
import type { Granularity, UserWithSettings } from '@ghostfolio/common/types';
|
|
|
|
import type { Granularity, UserWithSettings } from '@ghostfolio/common/types';
|
|
|
|
|
|
|
|
|
|
|
@ -423,13 +428,18 @@ export class DataProviderService {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const symbols = dataGatheringItems.map((dataGatheringItem) => {
|
|
|
|
const symbols = dataGatheringItems
|
|
|
|
return dataGatheringItem.symbol;
|
|
|
|
.filter(({ symbol }) => {
|
|
|
|
});
|
|
|
|
return !isDerivedCurrency(getCurrencyFromSymbol(symbol));
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.map(({ symbol }) => {
|
|
|
|
|
|
|
|
return symbol;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const maximumNumberOfSymbolsPerRequest =
|
|
|
|
const maximumNumberOfSymbolsPerRequest =
|
|
|
|
dataProvider.getMaxNumberOfSymbolsPerRequest?.() ??
|
|
|
|
dataProvider.getMaxNumberOfSymbolsPerRequest?.() ??
|
|
|
|
Number.MAX_SAFE_INTEGER;
|
|
|
|
Number.MAX_SAFE_INTEGER;
|
|
|
|
|
|
|
|
|
|
|
|
for (
|
|
|
|
for (
|
|
|
|
let i = 0;
|
|
|
|
let i = 0;
|
|
|
|
i < symbols.length;
|
|
|
|
i < symbols.length;
|
|
|
|