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-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
|
2022-04-09 06:48:43 +00:00
|
|
|
<strong>{{ botState.exchange }}</strong> in
|
|
|
|
<strong>{{ botState.trading_mode || 'spot' }}</strong> markets, 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
|
2022-04-08 05:44:28 +00:00
|
|
|
>,
|
|
|
|
<strong>force entry: {{ botState.force_entry_enable || 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>
|
2022-04-09 06:48:43 +00:00
|
|
|
<hr />
|
|
|
|
<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>
|
2020-05-06 04:38:57 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2020-08-09 13:19:16 +00:00
|
|
|
<script lang="ts">
|
2021-08-26 18:35:33 +00:00
|
|
|
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';
|
2021-07-01 18:41:55 +00:00
|
|
|
import DateTimeTZ from '@/components/general/DateTimeTZ.vue';
|
2021-12-20 19:12:57 +00:00
|
|
|
import StoreModules from '@/store/storeSubModules';
|
2020-09-02 18:19:09 +00:00
|
|
|
|
2022-04-15 17:57:17 +00:00
|
|
|
import { defineComponent } from '@vue/composition-api';
|
|
|
|
import { useNamespacedGetters } from 'vuex-composition-helpers';
|
2020-08-09 13:19:16 +00:00
|
|
|
|
2022-04-15 17:57:17 +00:00
|
|
|
export default defineComponent({
|
|
|
|
name: 'BotStatus',
|
|
|
|
components: { DateTimeTZ },
|
|
|
|
setup() {
|
|
|
|
const { version, profit, botState } = useNamespacedGetters(StoreModules.ftbot, [
|
|
|
|
BotStoreGetters.version,
|
|
|
|
BotStoreGetters.profit,
|
|
|
|
BotStoreGetters.botState,
|
|
|
|
]);
|
|
|
|
return {
|
|
|
|
version,
|
|
|
|
profit,
|
|
|
|
botState,
|
|
|
|
formatPercent,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
2020-05-06 04:38:57 +00:00
|
|
|
</script>
|