mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
608 B
25 lines
608 B
import { EnhancedSymbolProfile } from '@ghostfolio/common/interfaces';
|
|
import { AccountWithPlatform } from '@ghostfolio/common/types';
|
|
|
|
import { Order, Tag } from '@prisma/client';
|
|
|
|
export interface Activities {
|
|
activities: Activity[];
|
|
count: number;
|
|
}
|
|
|
|
export interface Activity extends Order {
|
|
Account?: AccountWithPlatform;
|
|
error?: ActivityError;
|
|
feeInBaseCurrency: number;
|
|
SymbolProfile?: EnhancedSymbolProfile;
|
|
tags?: Tag[];
|
|
updateAccountBalance?: boolean;
|
|
value: number;
|
|
valueInBaseCurrency: number;
|
|
}
|
|
|
|
export interface ActivityError {
|
|
code: 'IS_DUPLICATE';
|
|
message?: string;
|
|
}
|
|
|