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 { MarketData } from '@prisma/client'; |
||||
|
|
||||
import { EnhancedSymbolProfile } from './enhanced-symbol-profile.interface'; |
import { EnhancedAssetProfile } from './enhanced-asset-profile.interface'; |
||||
|
|
||||
export interface AdminMarketDataDetails { |
export interface AdminMarketDataDetails { |
||||
assetProfile: Partial<EnhancedSymbolProfile>; |
assetProfile: Partial<EnhancedAssetProfile>; |
||||
marketData: MarketData[]; |
marketData: MarketData[]; |
||||
} |
} |
||||
|
|||||
@ -1,18 +1,18 @@ |
|||||
import { BenchmarkTrend } from '@ghostfolio/common/types/'; |
import { BenchmarkTrend } from '@ghostfolio/common/types/'; |
||||
|
|
||||
import { EnhancedSymbolProfile } from './enhanced-symbol-profile.interface'; |
import { EnhancedAssetProfile } from './enhanced-asset-profile.interface'; |
||||
|
|
||||
export interface Benchmark { |
export interface Benchmark { |
||||
dataSource: EnhancedSymbolProfile['dataSource']; |
dataSource: EnhancedAssetProfile['dataSource']; |
||||
marketCondition: 'ALL_TIME_HIGH' | 'BEAR_MARKET' | 'NEUTRAL_MARKET'; |
marketCondition: 'ALL_TIME_HIGH' | 'BEAR_MARKET' | 'NEUTRAL_MARKET'; |
||||
name: EnhancedSymbolProfile['name']; |
name: EnhancedAssetProfile['name']; |
||||
performances: { |
performances: { |
||||
allTimeHigh: { |
allTimeHigh: { |
||||
date: Date; |
date: Date; |
||||
performancePercent: number; |
performancePercent: number; |
||||
}; |
}; |
||||
}; |
}; |
||||
symbol: EnhancedSymbolProfile['symbol']; |
symbol: EnhancedAssetProfile['symbol']; |
||||
trend50d: BenchmarkTrend; |
trend50d: BenchmarkTrend; |
||||
trend200d: BenchmarkTrend; |
trend200d: BenchmarkTrend; |
||||
} |
} |
||||
|
|||||
@ -1,8 +1,8 @@ |
|||||
import { MarketData } from '@prisma/client'; |
import { MarketData } from '@prisma/client'; |
||||
|
|
||||
import { EnhancedSymbolProfile } from '../enhanced-symbol-profile.interface'; |
import { EnhancedAssetProfile } from '../enhanced-asset-profile.interface'; |
||||
|
|
||||
export interface AssetProfileResponse { |
export interface AssetProfileResponse { |
||||
assetProfile: Partial<EnhancedSymbolProfile>; |
assetProfile: Partial<EnhancedAssetProfile>; |
||||
marketData: MarketData[]; |
marketData: MarketData[]; |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue