frequi_origin/src/ftbot/BotStatus.vue

35 lines
862 B
Vue
Raw Normal View History

2020-05-06 04:38:57 +00:00
<template>
<div>
<p v-if="profit">
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>
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>
, with Strategy<strong>{{ botState.strategy }}</strong>
2020-05-06 04:38:57 +00:00
</p>
<p>
Currently <strong>{{ botState.state }}</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: {
...mapState('ftbot', ['profit', 'botState']),
},
};
</script>