mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Enhance trade type with new fields of profit
This commit is contained in:
parent
d3e1527723
commit
1aa15cb18d
|
@ -24,9 +24,18 @@ export interface Trade {
|
||||||
|
|
||||||
current_rate?: number;
|
current_rate?: number;
|
||||||
/** Current profit as ratio */
|
/** Current profit as ratio */
|
||||||
|
profit_ratio: number;
|
||||||
|
/** Current profit in % */
|
||||||
|
profit_pct: number;
|
||||||
|
/** Current absolute profit */
|
||||||
|
profit_abs: number;
|
||||||
|
/** Deprecated */
|
||||||
current_profit?: number;
|
current_profit?: number;
|
||||||
|
/** Deprecated */
|
||||||
current_profit_abs?: number;
|
current_profit_abs?: number;
|
||||||
|
/** Deprecated */
|
||||||
current_profit_pct?: number;
|
current_profit_pct?: number;
|
||||||
|
|
||||||
sell_reason?: string;
|
sell_reason?: string;
|
||||||
min_rate?: number;
|
min_rate?: number;
|
||||||
max_rate?: number;
|
max_rate?: number;
|
||||||
|
@ -55,7 +64,9 @@ export interface ClosedTrade extends Trade {
|
||||||
close_date: string;
|
close_date: string;
|
||||||
close_timestamp: number;
|
close_timestamp: number;
|
||||||
close_rate: number;
|
close_rate: number;
|
||||||
|
/** Deprecated */
|
||||||
close_profit: number;
|
close_profit: number;
|
||||||
|
/** Deprecated */
|
||||||
close_profit_abs: number;
|
close_profit_abs: number;
|
||||||
fee_close: number;
|
fee_close: number;
|
||||||
fee_close_cost?: number;
|
fee_close_cost?: number;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user