frequi_origin/src/ftbot/PerformanceView.vue

35 lines
774 B
Vue
Raw Normal View History

2020-05-06 04:38:57 +00:00
<template>
<div class="card">
<div class="card-header">Performance</div>
2020-05-09 18:32:47 +00:00
<div class="card-body">
<table v-if="performanceStats" class="table table-sm table-hover ">
<thead>
<tr>
<th>Pair</th>
<th>Profit</th>
<th>Count</th>
</tr>
</thead>
<tbody>
<tr v-for="(pair, index) in performanceStats" :key="index">
<td>{{ pair.pair }}</td>
<td>{{ pair.profit }}</td>
<td>{{ pair.count }}</td>
</tr>
</tbody>
</table>
</div>
2020-05-06 04:38:57 +00:00
</div>
</template>
<script>
import { mapState } from 'vuex';
export default {
name: 'PerformanceView',
computed: {
...mapState('ftbot', ['performanceStats']),
},
};
</script>