diff --git a/src/types/blacklist.d.ts b/src/types/blacklist.d.ts new file mode 100644 index 00000000..e21e9bf6 --- /dev/null +++ b/src/types/blacklist.d.ts @@ -0,0 +1,10 @@ +export interface BlacklistPayload { + blacklist: Array; +} + +export interface BlacklistResponse { + method: Array; + length: number; + blacklist: Array; + errors: Record; +} diff --git a/src/types/daily.d.ts b/src/types/daily.d.ts new file mode 100644 index 00000000..3bd2a2b7 --- /dev/null +++ b/src/types/daily.d.ts @@ -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; +} diff --git a/src/types/index.ts b/src/types/index.ts index d97e095c..333aef62 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,4 +1,5 @@ export * from './auth.d'; +export * from './blacklist.d'; export * from './chart.d'; - +export * from './daily.d'; export * from './types.d'; diff --git a/src/types/types.d.ts b/src/types/types.d.ts index d302fc86..5154696a 100644 --- a/src/types/types.d.ts +++ b/src/types/types.d.ts @@ -1,30 +1,3 @@ -export interface BlacklistPayload { - blacklist: Array; -} - -export interface BlacklistResponse { - method: Array; - length: number; - blacklist: Array; - errors: Record; -} - -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; -} - export interface ForcebuyPayload { pair: string; price?: number;