mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Seperate balance interface to own type file
This commit is contained in:
parent
db08da67d8
commit
8836bd922c
21
src/types/balance.ts
Normal file
21
src/types/balance.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
export interface BalanceRecords {
|
||||
balance: number;
|
||||
currency: string;
|
||||
est_stake: number;
|
||||
free: number;
|
||||
used: number;
|
||||
stake: string;
|
||||
}
|
||||
|
||||
export interface BalanceInterface {
|
||||
currencies: Array<BalanceRecords>;
|
||||
note: string;
|
||||
/** Stake currency used */
|
||||
stake: string;
|
||||
/** Fiat symbol used */
|
||||
symbol: string;
|
||||
/** Total Balance in stake currency */
|
||||
total: number;
|
||||
/** Balance in FIAT currency */
|
||||
value: number;
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
export * from './auth';
|
||||
export * from './balance';
|
||||
export * from './blacklist';
|
||||
export * from './chart';
|
||||
export * from './daily';
|
||||
|
|
|
@ -9,15 +9,6 @@ export interface PerformanceEntry {
|
|||
profit: number;
|
||||
}
|
||||
|
||||
export interface BalanceRecords {
|
||||
balance: number;
|
||||
currency: string;
|
||||
est_stake: number;
|
||||
free: number;
|
||||
used: number;
|
||||
stake: string;
|
||||
}
|
||||
|
||||
export interface Logs {
|
||||
/**
|
||||
* Array of Logs
|
||||
|
@ -28,19 +19,6 @@ export interface Logs {
|
|||
log_count: number;
|
||||
}
|
||||
|
||||
export interface BalanceInterface {
|
||||
currencies: Array<BalanceRecords>;
|
||||
note: string;
|
||||
/** Stake currency used */
|
||||
stake: string;
|
||||
/** Fiat symbol used */
|
||||
symbol: string;
|
||||
/** Total Balance in stake currency */
|
||||
total: number;
|
||||
/** Balance in FIAT currency */
|
||||
value: number;
|
||||
}
|
||||
|
||||
/** Values for BotState.state */
|
||||
export enum BotStates {
|
||||
RUNNING = 'running',
|
||||
|
|
Loading…
Reference in New Issue
Block a user