From 4c57b898a5db044fecd9ea766d43d5b21fc5c16a Mon Sep 17 00:00:00 2001 From: Dhoni77 Date: Wed, 1 Nov 2023 22:19:07 +0530 Subject: [PATCH] feat: add interface and types --- libs/common/src/lib/interfaces/benchmark.interface.ts | 3 +++ libs/common/src/lib/types/benchmark-trend-type.type.ts | 1 + 2 files changed, 4 insertions(+) create mode 100644 libs/common/src/lib/types/benchmark-trend-type.type.ts diff --git a/libs/common/src/lib/interfaces/benchmark.interface.ts b/libs/common/src/lib/interfaces/benchmark.interface.ts index d1a63e1f4..e92070a8d 100644 --- a/libs/common/src/lib/interfaces/benchmark.interface.ts +++ b/libs/common/src/lib/interfaces/benchmark.interface.ts @@ -1,3 +1,4 @@ +import { BenchmarkTrend } from '../types/benchmark-trend-type.type'; import { EnhancedSymbolProfile } from './enhanced-symbol-profile.interface'; export interface Benchmark { @@ -7,6 +8,8 @@ export interface Benchmark { allTimeHigh: { date: Date; performancePercent: number; + trend50d: BenchmarkTrend; + trend200d: BenchmarkTrend; }; }; } diff --git a/libs/common/src/lib/types/benchmark-trend-type.type.ts b/libs/common/src/lib/types/benchmark-trend-type.type.ts new file mode 100644 index 000000000..70aaba90e --- /dev/null +++ b/libs/common/src/lib/types/benchmark-trend-type.type.ts @@ -0,0 +1 @@ +export type BenchmarkTrend = 'DOWN' | 'NEUTRAL' | 'UP';