import { EnhancedSymbolProfile } from '@ghostfolio/common/interfaces'; import { AccountWithPlatform } from '@ghostfolio/common/types'; import { Order, Tag } from '@prisma/client'; export interface Activity extends Order { account?: AccountWithPlatform; assetProfile: EnhancedSymbolProfile; error?: ActivityError; feeInAssetProfileCurrency: number; feeInBaseCurrency: number; /** * @deprecated Use `assetProfile` instead */ SymbolProfile?: EnhancedSymbolProfile; tagIds?: string[]; tags?: Tag[]; unitPriceInAssetProfileCurrency: number; updateAccountBalance?: boolean; value: number; valueInBaseCurrency: number; } export interface ActivityError { code: 'IS_DUPLICATE'; message?: string; }