mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Seperate Lock interface into it's own file
This commit is contained in:
parent
eb128b89ce
commit
db08da67d8
|
@ -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';
|
||||
|
|
19
src/types/locks.ts
Normal file
19
src/types/locks.ts
Normal file
|
@ -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[];
|
||||
}
|
|
@ -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[];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user