Feature/allocations by etf holding (#3464)
* Setup allocations by ETF holding * Update changelog
This commit is contained in:
@@ -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;
|
||||
|
5
libs/common/src/lib/interfaces/holding.interface.ts
Normal file
5
libs/common/src/lib/interfaces/holding.interface.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface Holding {
|
||||
allocationInPercentage?: number;
|
||||
name: string;
|
||||
valueInBaseCurrency: number;
|
||||
}
|
@@ -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,
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user