mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 02:11:57 +00:00
Show first / last trade
This commit is contained in:
parent
91876b4c1f
commit
5d05338486
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user