mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 10:43:52 +00:00
28 lines
661 B
Vue
28 lines
661 B
Vue
<template>
|
|
<div>
|
|
<div class="mb-2">
|
|
<h3>Performance</h3>
|
|
</div>
|
|
<b-table class="table-sm" :items="performanceStats" :fields="tableFields"></b-table>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
import { namespace } from 'vuex-class';
|
|
import { PerformanceEntry } from '@/types';
|
|
|
|
const ftbot = namespace('ftbot');
|
|
|
|
@Component({})
|
|
export default class Performance extends Vue {
|
|
@ftbot.State performanceStats!: PerformanceEntry[];
|
|
|
|
private tableFields = [
|
|
{ key: 'pair', label: 'Pair' },
|
|
{ key: 'profit', label: 'Profit' },
|
|
{ key: 'count', label: 'Count' },
|
|
];
|
|
}
|
|
</script>
|