mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
17 changed files with 48 additions and 52 deletions
@ -1,8 +1,8 @@ |
|||
import { MarketData } from '@prisma/client'; |
|||
|
|||
import { EnhancedSymbolProfile } from './enhanced-symbol-profile.interface'; |
|||
import { EnhancedAssetProfile } from './enhanced-asset-profile.interface'; |
|||
|
|||
export interface AdminMarketDataDetails { |
|||
assetProfile: Partial<EnhancedSymbolProfile>; |
|||
assetProfile: Partial<EnhancedAssetProfile>; |
|||
marketData: MarketData[]; |
|||
} |
|||
|
|||
@ -1,18 +1,18 @@ |
|||
import { BenchmarkTrend } from '@ghostfolio/common/types/'; |
|||
|
|||
import { EnhancedSymbolProfile } from './enhanced-symbol-profile.interface'; |
|||
import { EnhancedAssetProfile } from './enhanced-asset-profile.interface'; |
|||
|
|||
export interface Benchmark { |
|||
dataSource: EnhancedSymbolProfile['dataSource']; |
|||
dataSource: EnhancedAssetProfile['dataSource']; |
|||
marketCondition: 'ALL_TIME_HIGH' | 'BEAR_MARKET' | 'NEUTRAL_MARKET'; |
|||
name: EnhancedSymbolProfile['name']; |
|||
name: EnhancedAssetProfile['name']; |
|||
performances: { |
|||
allTimeHigh: { |
|||
date: Date; |
|||
performancePercent: number; |
|||
}; |
|||
}; |
|||
symbol: EnhancedSymbolProfile['symbol']; |
|||
symbol: EnhancedAssetProfile['symbol']; |
|||
trend50d: BenchmarkTrend; |
|||
trend200d: BenchmarkTrend; |
|||
} |
|||
|
|||
@ -1,8 +1,8 @@ |
|||
import { MarketData } from '@prisma/client'; |
|||
|
|||
import { EnhancedSymbolProfile } from '../enhanced-symbol-profile.interface'; |
|||
import { EnhancedAssetProfile } from '../enhanced-asset-profile.interface'; |
|||
|
|||
export interface AssetProfileResponse { |
|||
assetProfile: Partial<EnhancedSymbolProfile>; |
|||
assetProfile: Partial<EnhancedAssetProfile>; |
|||
marketData: MarketData[]; |
|||
} |
|||
|
|||
Loading…
Reference in new issue