|
@ -1,7 +1,8 @@ |
|
|
import type { DataSource, Order } from '@prisma/client'; |
|
|
import type { Order } from '@prisma/client'; |
|
|
|
|
|
|
|
|
import { PortfolioDetails, PortfolioPosition } from '..'; |
|
|
import { EnhancedSymbolProfile, PortfolioDetails, PortfolioPosition } from '..'; |
|
|
import { Market } from '../../types'; |
|
|
import { Market } from '../../types'; |
|
|
|
|
|
import type { AccountWithPlatform } from '../../types'; |
|
|
|
|
|
|
|
|
export interface PublicPortfolioResponse extends PublicPortfolioResponseV1 { |
|
|
export interface PublicPortfolioResponse extends PublicPortfolioResponseV1 { |
|
|
alias?: string; |
|
|
alias?: string; |
|
@ -25,12 +26,14 @@ export interface PublicPortfolioResponse extends PublicPortfolioResponseV1 { |
|
|
| 'valueInPercentage' |
|
|
| 'valueInPercentage' |
|
|
>; |
|
|
>; |
|
|
}; |
|
|
}; |
|
|
latestActivities: (Pick<Order, 'date' | 'quantity' | 'type' | 'unitPrice'> & { |
|
|
latestActivities: (Pick< |
|
|
SymbolProfile: { |
|
|
Order, |
|
|
dataSource: DataSource; |
|
|
'currency' | 'date' | 'quantity' | 'type' | 'unitPrice' |
|
|
name: string; |
|
|
> & { |
|
|
symbol: string; |
|
|
account?: Pick<AccountWithPlatform, 'currency' | 'name' | 'platform'>; |
|
|
}; |
|
|
SymbolProfile?: EnhancedSymbolProfile; |
|
|
|
|
|
value: number; |
|
|
|
|
|
valueInBaseCurrency: number; |
|
|
})[]; |
|
|
})[]; |
|
|
markets: { |
|
|
markets: { |
|
|
[key in Market]: Pick< |
|
|
[key in Market]: Pick< |
|
|