mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 11:35:14 +00:00
Move types to other files
This commit is contained in:
parent
3aba82f917
commit
69fd6c81d8
10
src/types/blacklist.d.ts
vendored
Normal file
10
src/types/blacklist.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
export interface BlacklistPayload {
|
||||||
|
blacklist: Array<string>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BlacklistResponse {
|
||||||
|
method: Array<string>;
|
||||||
|
length: number;
|
||||||
|
blacklist: Array<string>;
|
||||||
|
errors: Record<string, string>;
|
||||||
|
}
|
15
src/types/daily.d.ts
vendored
Normal file
15
src/types/daily.d.ts
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
export interface DailyPayload {
|
||||||
|
timescale?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DailyRecord {
|
||||||
|
/** Date in the format yyyy-mm-dd */
|
||||||
|
date: string;
|
||||||
|
abs_profit: number;
|
||||||
|
fiat_value: number;
|
||||||
|
trade_count: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DailyReturnValue {
|
||||||
|
data: Array<DailyRecord>;
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
export * from './auth.d';
|
export * from './auth.d';
|
||||||
|
export * from './blacklist.d';
|
||||||
export * from './chart.d';
|
export * from './chart.d';
|
||||||
|
export * from './daily.d';
|
||||||
export * from './types.d';
|
export * from './types.d';
|
||||||
|
|
27
src/types/types.d.ts
vendored
27
src/types/types.d.ts
vendored
|
@ -1,30 +1,3 @@
|
||||||
export interface BlacklistPayload {
|
|
||||||
blacklist: Array<string>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface BlacklistResponse {
|
|
||||||
method: Array<string>;
|
|
||||||
length: number;
|
|
||||||
blacklist: Array<string>;
|
|
||||||
errors: Record<string, string>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DailyPayload {
|
|
||||||
timescale?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DailyRecord {
|
|
||||||
/** Date in the format yyyy-mm-dd */
|
|
||||||
date: string;
|
|
||||||
abs_profit: number;
|
|
||||||
fiat_value: number;
|
|
||||||
trade_count: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DailyReturnValue {
|
|
||||||
data: Array<DailyRecord>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ForcebuyPayload {
|
export interface ForcebuyPayload {
|
||||||
pair: string;
|
pair: string;
|
||||||
price?: number;
|
price?: number;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user