Show first / last trade

This commit is contained in:
Matthias 2020-05-24 09:14:56 +02:00
parent 91876b4c1f
commit 5d05338486

View File

@ -4,6 +4,13 @@
Avg Profit {{ profit.profit_all_coin.toFixed(2) }}% in {{ profit.trade_count }} Trades, with
an average duration of {{ profit.avg_duration }}. Best pair: {{ profit.best_pair }}.
</p>
<p v-if="profit.first_trade_timestamp">
First trade opened:
<strong>{{ formatTimestamp(profit.first_trade_timestamp) }}</strong> <br />
Last trade opened:
<strong>{{ formatTimestamp(profit.latest_trade_timestamp) }}</strong>
</p>
<p>
Running with
<strong>
@ -31,5 +38,10 @@ export default {
computed: {
...mapState('ftbot', ['profit', 'botState']),
},
methods: {
formatTimestamp(timestamp) {
return new Date(timestamp).toUTCString();
},
},
};
</script>