frequi_origin/src/components/ftbot/BotStatus.vue

61 lines
1.9 KiB
Vue
Raw Normal View History

2020-05-06 04:38:57 +00:00
<template>
2021-01-16 15:07:06 +00:00
<div v-if="botState">
2020-05-25 18:41:17 +00:00
<p>
Running Freqtrade <strong>{{ version }}</strong>
</p>
2020-09-02 18:19:09 +00:00
<p>
Avg Profit {{ formatPercent(profit.profit_all_ratio_mean) }} (&sum;
{{ formatPercent(profit.profit_all_ratio_sum) }}) in {{ profit.trade_count }} Trades, with an
average duration of {{ profit.avg_duration }}. Best pair: {{ profit.best_pair }}.
2020-05-06 04:38:57 +00:00
</p>
2020-05-24 07:14:56 +00:00
<p v-if="profit.first_trade_timestamp">
First trade opened:
<strong><DateTimeTZ :date="profit.first_trade_timestamp" show-timezone /></strong>
<br />
2020-05-24 07:14:56 +00:00
Last trade opened:
<strong><DateTimeTZ :date="profit.latest_trade_timestamp" show-timezone /></strong>
2020-05-24 07:14:56 +00:00
</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';
import { BotState, ProfitInterface } from '@/types';
import { BotStoreGetters } from '@/store/modules/ftbot';
2020-05-06 04:38:57 +00:00
2020-09-02 18:19:09 +00:00
import { formatPercent } from '@/shared/formatters';
import DateTimeTZ from '@/components/general/DateTimeTZ.vue';
2020-09-02 18:19:09 +00:00
2020-08-09 13:19:16 +00:00
const ftbot = namespace('ftbot');
@Component({ components: { DateTimeTZ } })
2020-08-09 13:19:16 +00:00
export default class BotStatus extends Vue {
@ftbot.Getter [BotStoreGetters.version]: string;
2020-08-09 13:19:16 +00:00
@ftbot.Getter [BotStoreGetters.profit]: ProfitInterface | {};
2020-08-09 13:19:16 +00:00
@ftbot.Getter [BotStoreGetters.botState]?: BotState;
2020-08-09 13:19:16 +00:00
2020-09-02 18:19:09 +00:00
formatPercent = formatPercent;
2020-08-09 13:19:16 +00:00
}
2020-05-06 04:38:57 +00:00
</script>