mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 12:13:52 +00:00
62 lines
1.9 KiB
Vue
62 lines
1.9 KiB
Vue
<template>
|
|
<div v-if="botState">
|
|
<p>
|
|
Running Freqtrade <strong>{{ version }}</strong>
|
|
</p>
|
|
<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 }}.
|
|
</p>
|
|
<p v-if="profit.first_trade_timestamp">
|
|
First trade opened:
|
|
|
|
<strong><DateTimeTZ :date="profit.first_trade_timestamp" show-timezone /></strong>
|
|
<br />
|
|
Last trade opened:
|
|
<strong><DateTimeTZ :date="profit.latest_trade_timestamp" show-timezone /></strong>
|
|
</p>
|
|
|
|
<p>
|
|
Running with
|
|
<strong>
|
|
{{ botState.max_open_trades }}x{{ botState.stake_amount }} {{ botState.stake_currency }}
|
|
</strong>
|
|
on
|
|
<strong>{{ botState.exchange }}</strong
|
|
>, with Strategy <strong>{{ botState.strategy }}</strong>
|
|
</p>
|
|
<p>
|
|
Currently <strong>{{ botState.state }}</strong
|
|
>, <strong>forcebuy: {{ botState.forcebuy_enabled }}</strong>
|
|
</p>
|
|
<p>
|
|
<strong>{{ botState.dry_run ? 'Dry-Run' : 'Live' }}</strong>
|
|
</p>
|
|
</div>
|
|
</template>
|
|
|
|
<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';
|
|
|
|
import { formatPercent } from '@/shared/formatters';
|
|
import DateTimeTZ from '@/components/general/DateTimeTZ.vue';
|
|
import StoreModules from '@/store/storeSubModules';
|
|
|
|
const ftbot = namespace(StoreModules.ftbot);
|
|
|
|
@Component({ components: { DateTimeTZ } })
|
|
export default class BotStatus extends Vue {
|
|
@ftbot.Getter [BotStoreGetters.version]: string;
|
|
|
|
@ftbot.Getter [BotStoreGetters.profit]: ProfitInterface | {};
|
|
|
|
@ftbot.Getter [BotStoreGetters.botState]?: BotState;
|
|
|
|
formatPercent = formatPercent;
|
|
}
|
|
</script>
|