Show bot start date in general overview

This commit is contained in:
Matthias 2023-04-08 16:37:39 +02:00
parent e2c8050574
commit d68f8c69c6
2 changed files with 23 additions and 13 deletions

View File

@ -47,24 +47,31 @@
{{ botStore.activeBot.profit.best_pair }}.
</p>
<p v-if="botStore.activeBot.profit.first_trade_timestamp">
<span v-if="botStore.activeBot.profit.bot_start_timestamp" class="d-block">
Bot start date:
<strong>
<DateTimeTZ :date="botStore.activeBot.profit.bot_start_timestamp" show-timezone />
</strong>
</span>
<span class="d-block">
First trade opened:
<strong>
<DateTimeTZ :date="botStore.activeBot.profit.first_trade_timestamp" show-timezone />
</strong>
<br />
</span>
<span class="d-block">
Last trade opened:
<strong>
<DateTimeTZ :date="botStore.activeBot.profit.latest_trade_timestamp" show-timezone />
</strong>
</span>
</p>
<p>
<span v-if="botStore.activeBot.profit.profit_factor">
<span v-if="botStore.activeBot.profit.profit_factor" class="d-block">
Profit factor:
{{ botStore.activeBot.profit.profit_factor.toFixed(2) }}
</span>
<br />
<span v-if="botStore.activeBot.profit.trading_volume">
<span v-if="botStore.activeBot.profit.trading_volume" class="d-block">
Trading volume:
{{
formatPriceCurrency(

View File

@ -40,4 +40,7 @@ export interface ProfitInterface {
max_drawdown?: number;
max_drawdown_abs?: number;
trading_volume?: number;
/** Initial bot start date*/
bot_start_timestamp?: number;
bot_start_date?: string;
}