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) }} (∑
|
|
|
|
{{ 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:
|
2021-07-01 18:41:55 +00:00
|
|
|
|
|
|
|
<strong><DateTimeTZ :date="profit.first_trade_timestamp" show-timezone /></strong>
|
|
|
|
<br />
|
2020-05-24 07:14:56 +00:00
|
|
|
Last trade opened:
|
2021-07-01 18:41:55 +00:00
|
|
|
<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
|
2020-05-06 17:38:52 +00:00
|
|
|
<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>
|
2020-05-06 17:38:52 +00:00
|
|
|
</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-29 09:23:39 +00:00
|
|
|
import { BotState } from '@/types';
|
2020-05-06 04:38:57 +00:00
|
|
|
|
2020-09-02 18:19:09 +00:00
|
|
|
import { formatPercent } from '@/shared/formatters';
|
2021-07-01 18:41:55 +00:00
|
|
|
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');
|
|
|
|
|
2021-07-01 18:41:55 +00:00
|
|
|
@Component({ components: { DateTimeTZ } })
|
2020-08-09 13:19:16 +00:00
|
|
|
export default class BotStatus extends Vue {
|
|
|
|
@ftbot.State version;
|
|
|
|
|
|
|
|
@ftbot.State profit;
|
|
|
|
|
2021-01-16 15:07:06 +00:00
|
|
|
@ftbot.State 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>
|