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.
 
 
 
 
 

39 lines
743 B

import { MarketState } from '@ghostfolio/common/types';
import {
Account,
DataSource,
SymbolProfile,
Type as TypeOfOrder
} from '@prisma/client';
export interface IOrder {
account: Account;
currency: string;
date: string;
fee: number;
id?: string;
isDraft: boolean;
quantity: number;
symbol: string;
symbolProfile: SymbolProfile;
type: TypeOfOrder;
unitPrice: number;
}
export interface IDataProviderHistoricalResponse {
marketPrice: number;
performance?: number;
}
export interface IDataProviderResponse {
currency: string;
dataSource: DataSource;
marketPrice: number;
marketState: MarketState;
}
export interface IDataGatheringItem {
dataSource: DataSource;
date?: Date;
symbol: string;
}