frequi_origin/src/components/ftbot/BotStatus.vue

48 lines
1.3 KiB
Vue
Raw Normal View History

2020-05-06 04:38:57 +00:00
<template>
<div>
2020-05-06 19:20:33 +00:00
<p v-if="profit.profit_all_coin">
2020-05-06 04:38:57 +00:00
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>
2020-05-24 07:14:56 +00:00
<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>
2020-05-06 04:38:57 +00:00
<p>
Running with
<strong>
{{ botState.max_open_trades }}x{{ botState.stake_amount }} {{ botState.stake_currency }}
</strong>
2020-05-06 04:38:57 +00:00
on
<strong>{{ botState.exchange }}</strong>
2020-05-21 18:30:37 +00:00
, with Strategy <strong>{{ botState.strategy }}</strong>
2020-05-06 04:38:57 +00:00
</p>
<p>
2020-05-14 16:12:20 +00:00
Currently <strong>{{ botState.state }}</strong
>, <strong>forcebuy: {{ botState.forcebuy_enabled }}</strong>
</p>
<p>
<strong>{{ botState.dry_run ? 'Dry-Run' : 'Live' }}</strong>
2020-05-06 04:38:57 +00:00
</p>
</div>
</template>
<script>
import { mapState } from 'vuex';
export default {
name: 'BotStatus',
computed: {
2020-05-23 08:23:01 +00:00
...mapState('ftbot', ['profit', 'botState']),
2020-05-06 04:38:57 +00:00
},
2020-05-24 07:14:56 +00:00
methods: {
formatTimestamp(timestamp) {
return new Date(timestamp).toUTCString();
},
},
2020-05-06 04:38:57 +00:00
};
</script>