diff --git a/src/components/ftbot/BotComparisonList.vue b/src/components/ftbot/BotComparisonList.vue index 7b3301e2..d1c63db0 100644 --- a/src/components/ftbot/BotComparisonList.vue +++ b/src/components/ftbot/BotComparisonList.vue @@ -93,7 +93,7 @@ export default class BotComparisonList extends Vue { botId: this.allAvailableBots[k].botName, trades: `${this.allOpenTradeCount[k]} / ${this.allBotState[k]?.max_open_trades || 'N/A'}`, profitClosed: v.profit_closed_coin, - profitClosedRatio: v.profit_closed_ratio_sum || 0, + profitClosedRatio: v.profit_closed_ratio || 0, stakeCurrency: this.allBotState[k]?.stake_currency || '', profitOpenRatio, profitOpen, diff --git a/src/types/profit.ts b/src/types/profit.ts index 64c1ac74..be157618 100644 --- a/src/types/profit.ts +++ b/src/types/profit.ts @@ -2,14 +2,26 @@ export interface ProfitInterface { profit_closed_coin: number; profit_closed_percent_mean: number; profit_closed_ratio_mean: number; + /** Deprecated, (wrong calculation) do not use */ profit_closed_percent_sum: number; + /** Deprecated, (wrong calculation) do not use */ profit_closed_ratio_sum: number; profit_closed_fiat: number; + /** Closed profit ratio - calculated against starting balance */ + profit_closed_ratio: number; + /** Closed profit percent - calculated against starting balance */ + profit_closed_percent: number; profit_all_coin: number; profit_all_percent_mean: number; profit_all_ratio_mean: number; + /** Deprecated, (wrong calculation) do not use */ profit_all_percent_sum: number; + /** Deprecated, (wrong calculation) do not use */ profit_all_ratio_sum: number; + /** all profit ratio - calculated against starting balance */ + profit_all_ratio: number; + /** all profit percent - calculated against starting balance */ + profit_all_percent: number; profit_all_fiat: number; trade_count: number; closed_trade_count: number;