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:
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user