diff --git a/src/components/ftbot/TradeDetail.vue b/src/components/ftbot/TradeDetail.vue
index 54db97f3..ee23ee06 100644
--- a/src/components/ftbot/TradeDetail.vue
+++ b/src/components/ftbot/TradeDetail.vue
@@ -7,13 +7,22 @@
{{ trade.pair }}
{{ timestampms(trade.open_timestamp) }}
{{ formatPrice(trade.open_rate) }}
- {{ formatPrice(trade.close_rate) }}
- {{ formatPrice(trade.min_rate) }}
- {{ formatPrice(trade.max_rate) }}
+ {{
+ formatPrice(trade.close_rate)
+ }}
+ {{
+ formatPrice(trade.min_rate)
+ }}
+ {{
+ formatPrice(trade.max_rate)
+ }}
{{
timestampms(trade.close_timestamp)
}}
-
+
{{ formatPercent(trade.current_profit) }} | {{ trade.current_profit_abs }}
@@ -26,15 +35,21 @@
{{ formatPercent(trade.stop_loss_pct / 100) }} |
{{ formatPrice(trade.stop_loss_abs) }}
-
+
{{ formatPercent(trade.initial_stop_loss_pct / 100) }} |
- {{ formatPrice(trade.initial_stop_loss) }}
+ {{ formatPrice(trade.initial_stop_loss_abs) }}
-
+
{{ formatPercent(trade.stoploss_current_dist_ratio) }} |
{{ formatPrice(trade.stoploss_current_dist) }}
-
+
{{ timestampms(trade.stoploss_last_update_timestamp) }}
diff --git a/src/types/trades.ts b/src/types/trades.ts
index 72d16349..f923147f 100644
--- a/src/types/trades.ts
+++ b/src/types/trades.ts
@@ -23,7 +23,10 @@ export interface Trade {
fee_close_currency?: string;
current_rate?: number;
+ /** Current profit as ratio */
current_profit?: number;
+ current_profit_abs?: number;
+ current_profit_pct?: number;
sell_reason?: string;
min_rate?: number;
max_rate?: number;
@@ -37,6 +40,10 @@ export interface Trade {
initial_stop_loss_abs?: number;
initial_stop_loss_ratio?: number;
initial_stop_loss_pct?: number;
+
+ stoploss_current_dist?: number;
+ stoploss_current_dist_ratio?: number;
+ stoploss_current_dist_pct?: number;
open_order_id?: string;
}
@@ -54,19 +61,7 @@ export interface ClosedTrade extends Trade {
fee_close_cost?: number;
fee_close_currency?: string;
- current_rate?: number;
- sell_reason?: string;
- min_rate?: number;
- max_rate?: number;
-
- stop_loss_abs: number;
- stop_loss_ratio: number;
- stop_loss_pct: number;
- stoploss_order_id?: string;
- stoploss_last_update?: string;
- stoploss_last_update_timestamp?: number;
- initial_stop_loss_abs?: number;
- initial_stop_loss_ratio?: number;
- initial_stop_loss_pct?: number;
- open_order_id?: string;
+ sell_reason: string;
+ min_rate: number;
+ max_rate: number;
}