Feature/allocations by etf holding (#3464)

* Setup allocations by ETF holding

* Update changelog
This commit is contained in:
Thomas Kaul
2024-06-07 21:45:07 +02:00
committed by GitHub
parent 3fb7e746df
commit 8a9ae9bb33
24 changed files with 302 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ import { AssetClass, AssetSubClass, DataSource } from '@prisma/client';
import { Country } from './country.interface';
import { DataProviderInfo } from './data-provider-info.interface';
import { Holding } from './holding.interface';
import { ScraperConfiguration } from './scraper-configuration.interface';
import { Sector } from './sector.interface';
@@ -16,10 +17,11 @@ export interface EnhancedSymbolProfile {
dataProviderInfo?: DataProviderInfo;
dataSource: DataSource;
dateOfFirstActivity?: Date;
id: string;
figi?: string;
figiComposite?: string;
figiShareClass?: string;
holdings: Holding[];
id: string;
isin?: string;
name?: string;
scraperConfiguration?: ScraperConfiguration;

View File

@@ -0,0 +1,5 @@
export interface Holding {
allocationInPercentage?: number;
name: string;
valueInBaseCurrency: number;
}

View File

@@ -17,6 +17,7 @@ import type { Export } from './export.interface';
import type { FilterGroup } from './filter-group.interface';
import type { Filter } from './filter.interface';
import type { HistoricalDataItem } from './historical-data-item.interface';
import type { Holding } from './holding.interface';
import type { InfoItem } from './info-item.interface';
import type { InvestmentItem } from './investment-item.interface';
import type { LineChartItem } from './line-chart-item.interface';
@@ -71,6 +72,7 @@ export {
Filter,
FilterGroup,
HistoricalDataItem,
Holding,
ImportResponse,
InfoItem,
InvestmentItem,

View File

@@ -2,6 +2,7 @@ import { AssetClass, AssetSubClass, DataSource, Tag } from '@prisma/client';
import { Market, MarketAdvanced, MarketState } from '../types';
import { Country } from './country.interface';
import { Holding } from './holding.interface';
import { Sector } from './sector.interface';
export interface PortfolioPosition {
@@ -20,6 +21,7 @@ export interface PortfolioPosition {
grossPerformancePercent: number;
grossPerformancePercentWithCurrencyEffect: number;
grossPerformanceWithCurrencyEffect: number;
holdings: Holding[];
investment: number;
marketChange?: number;
marketChangePercent?: number;