frequi_origin/src/components/ftbot/BotStatus.vue

56 lines
1.5 KiB
Vue
Raw Normal View History

2020-05-06 04:38:57 +00:00
<template>
<div>
2020-05-25 18:41:17 +00:00
<p>
Running Freqtrade <strong>{{ version }}</strong>
</p>
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
2020-05-27 18:13:25 +00:00
<strong>{{ botState.exchange }}</strong
>, 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>
2020-08-09 13:19:16 +00:00
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import { namespace } from 'vuex-class';
2020-08-09 13:23:04 +00:00
import { BotState } from '@/store/types';
2020-05-06 04:38:57 +00:00
2020-08-09 13:19:16 +00:00
const ftbot = namespace('ftbot');
@Component({})
export default class BotStatus extends Vue {
@ftbot.State version;
@ftbot.State profit;
@ftbot.State botState: BotState;
formatTimestamp(timestamp) {
return new Date(timestamp).toUTCString();
}
}
2020-05-06 04:38:57 +00:00
</script>