ghostfolio/apps/api/src/app/order/interfaces/activities.interface.ts
Marcin Szymański 28d2fd3877
Bugfix/restore incorrect fee currency conversion (#4645)
* Restore incorrect fee currency conversion

* Update changelog
2025-05-04 17:14:46 +02:00

28 lines
688 B
TypeScript

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;
feeInAssetProfileCurrency: number;
feeInBaseCurrency: number;
SymbolProfile?: EnhancedSymbolProfile;
tags?: Tag[];
unitPriceInAssetProfileCurrency: number;
updateAccountBalance?: boolean;
value: number;
valueInBaseCurrency: number;
}
export interface ActivityError {
code: 'IS_DUPLICATE';
message?: string;
}