Feature/respect data source in data gathering (#107)
* Respect data source in data gathering * Update changelog * optimize fetching from multiple data sources (#123) * optimize fetching from multiple data sources * improve performance by executing data gathering promises in parallel * removed unused imports * rename hasHistoricalData to canHandle * Sort imports * Clean up Co-authored-by: Valentin Zickner <3200232+vzickner@users.noreply.github.com>
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
import { IDataGatheringItem } from '@ghostfolio/api/services/interfaces/interfaces';
|
||||
import { Currency } from '@prisma/client';
|
||||
import { DataSource } from '@prisma/client';
|
||||
|
||||
export const baseCurrency = Currency.CHF;
|
||||
|
||||
export const benchmarks = ['VOO'];
|
||||
export const benchmarks: Partial<IDataGatheringItem>[] = [
|
||||
{ dataSource: DataSource.YAHOO, symbol: 'VOO' }
|
||||
];
|
||||
|
||||
export const currencyPairs = [
|
||||
`${Currency.USD}${Currency.EUR}`,
|
||||
`${Currency.USD}${Currency.GBP}`,
|
||||
`${Currency.USD}${Currency.CHF}`
|
||||
export const currencyPairs: Partial<IDataGatheringItem>[] = [
|
||||
{ dataSource: DataSource.YAHOO, symbol: `${Currency.USD}${Currency.EUR}` },
|
||||
{ dataSource: DataSource.YAHOO, symbol: `${Currency.USD}${Currency.GBP}` },
|
||||
{ dataSource: DataSource.YAHOO, symbol: `${Currency.USD}${Currency.CHF}` }
|
||||
];
|
||||
|
||||
export const ghostfolioScraperApiSymbolPrefix = '_GF_';
|
||||
|
Reference in New Issue
Block a user