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 }}. {{ botStore.activeBot.profit.best_pair }}.
</p> </p>
<p v-if="botStore.activeBot.profit.first_trade_timestamp"> <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: First trade opened:
<strong> <strong>
<DateTimeTZ :date="botStore.activeBot.profit.first_trade_timestamp" show-timezone /> <DateTimeTZ :date="botStore.activeBot.profit.first_trade_timestamp" show-timezone />
</strong> </strong>
<br /> </span>
<span class="d-block">
Last trade opened: Last trade opened:
<strong> <strong>
<DateTimeTZ :date="botStore.activeBot.profit.latest_trade_timestamp" show-timezone /> <DateTimeTZ :date="botStore.activeBot.profit.latest_trade_timestamp" show-timezone />
</strong> </strong>
</span>
</p> </p>
<p> <p>
<span v-if="botStore.activeBot.profit.profit_factor"> <span v-if="botStore.activeBot.profit.profit_factor" class="d-block">
Profit factor: Profit factor:
{{ botStore.activeBot.profit.profit_factor.toFixed(2) }} {{ botStore.activeBot.profit.profit_factor.toFixed(2) }}
</span> </span>
<br /> <span v-if="botStore.activeBot.profit.trading_volume" class="d-block">
<span v-if="botStore.activeBot.profit.trading_volume">
Trading volume: Trading volume:
{{ {{
formatPriceCurrency( formatPriceCurrency(

View File

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