From db08da67d8d4c1cb335502854628690e50ee1266 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 2 Dec 2020 20:04:14 +0100 Subject: [PATCH] Seperate Lock interface into it's own file --- src/types/index.ts | 1 + src/types/locks.ts | 19 +++++++++++++++++++ src/types/trades.ts | 20 -------------------- 3 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 src/types/locks.ts diff --git a/src/types/index.ts b/src/types/index.ts index 7e999926..b32af85a 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -2,6 +2,7 @@ export * from './auth'; export * from './blacklist'; export * from './chart'; export * from './daily'; +export * from './locks'; export * from './plot'; export * from './profit'; export * from './trades'; diff --git a/src/types/locks.ts b/src/types/locks.ts new file mode 100644 index 00000000..bb3b4a37 --- /dev/null +++ b/src/types/locks.ts @@ -0,0 +1,19 @@ +export interface Lock { + pair: string; + /** Lock insertion time in the format Y-M-d HH:mm:ss */ + lock_time: string; + /** Time of lock insertion */ + lock_timestamp: number; + + /** Lock end time in the format Y-M-d HH:mm:ss */ + lock_end_time: string; + /** Time of lock end - will be rounded up to the next candle */ + lock_end_timestamp: number; + reason: string; + active: boolean; +} + +export interface LockResponse { + lock_count: number; + locks: Lock[]; +} diff --git a/src/types/trades.ts b/src/types/trades.ts index e1e9688d..a1d9f969 100644 --- a/src/types/trades.ts +++ b/src/types/trades.ts @@ -65,23 +65,3 @@ export interface ClosedTrade extends Trade { min_rate: number; max_rate: number; } - -export interface Lock { - pair: string; - /** Lock insertion time in the format Y-M-d HH:mm:ss */ - lock_time: string; - /** Time of lock insertion */ - lock_timestamp: number; - - /** Lock end time in the format Y-M-d HH:mm:ss */ - lock_end_time: string; - /** Time of lock end - will be rounded up to the next candle */ - lock_end_timestamp: number; - reason: string; - active: boolean; -} - -export interface LockResponse { - lock_count: number; - locks: Lock[]; -}