From a983bc3f51db6a53aed131546578e92aa4a1feb1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 24 Apr 2022 14:51:46 +0200 Subject: [PATCH] Add locks side to type --- src/types/backtest.ts | 1 + src/types/locks.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/types/backtest.ts b/src/types/backtest.ts index 4a201eed..e0486e8a 100644 --- a/src/types/backtest.ts +++ b/src/types/backtest.ts @@ -60,6 +60,7 @@ export interface StrategyBacktestResult { profit_mean: number; profit_total: number; profit_total_abs: number; + cagr?: number; backtest_end: string; backtest_end_ts: number; diff --git a/src/types/locks.ts b/src/types/locks.ts index ecf4b8fd..0999f666 100644 --- a/src/types/locks.ts +++ b/src/types/locks.ts @@ -11,6 +11,8 @@ export interface Lock { /** Time of lock end - will be rounded up to the next candle */ lock_end_timestamp: number; reason: string; + /** Lock side, can be long, short or '*' */ + side?: string; active: boolean; }