Feature/replace type with asset class (#274)

* Improved the asset classification
  * Add assetClass to symbolProfile
  * Remove type from position

* Update changelog
This commit is contained in:
Thomas
2021-08-08 19:27:58 +02:00
committed by GitHub
parent 178166d86b
commit 80d043729d
17 changed files with 73 additions and 99 deletions

View File

@@ -1,5 +1,5 @@
import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
import { Currency } from '@prisma/client';
import { AssetClass, Currency } from '@prisma/client';
import { Country } from './country.interface';
import { Sector } from './sector.interface';
@@ -10,6 +10,7 @@ export interface PortfolioPosition {
};
allocationCurrent: number;
allocationInvestment: number;
assetClass?: AssetClass;
countries: Country[];
currency: Currency;
exchange?: string;

View File

@@ -1,10 +1,8 @@
import {
MarketState,
Type
} from '@ghostfolio/api/services/interfaces/interfaces';
import { Currency } from '@prisma/client';
import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
import { AssetClass, Currency } from '@prisma/client';
export interface Position {
assetClass: AssetClass;
averagePrice: number;
currency: Currency;
firstBuyDate: string;
@@ -18,6 +16,5 @@ export interface Position {
quantity: number;
symbol: string;
transactionCount: number;
type?: Type;
url?: string;
}