mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 04:03:51 +00:00
Fix price display in trade tables
This commit is contained in:
parent
80e525bbf8
commit
4af3197cda
|
@ -46,7 +46,7 @@ import { Component, Vue, Prop } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
import { formatPercent } from '@/shared/formatters';
|
import { formatPercent, formatPrice } from '@/shared/formatters';
|
||||||
import { Trade } from '@/types';
|
import { Trade } from '@/types';
|
||||||
import ProfitSymbol from './ProfitSymbol.vue';
|
import ProfitSymbol from './ProfitSymbol.vue';
|
||||||
|
|
||||||
|
@ -95,10 +95,11 @@ export default class TradeList extends Vue {
|
||||||
{ key: 'pair', label: 'Pair' },
|
{ key: 'pair', label: 'Pair' },
|
||||||
{ key: 'amount', label: 'Amount' },
|
{ key: 'amount', label: 'Amount' },
|
||||||
{ key: 'stake_amount', label: 'Stake amount' },
|
{ key: 'stake_amount', label: 'Stake amount' },
|
||||||
{ key: 'open_rate', label: 'Open rate' },
|
{ key: 'open_rate', label: 'Open rate', formatter: (value) => formatPrice(value) },
|
||||||
{
|
{
|
||||||
key: this.activeTrades ? 'current_rate' : 'close_rate',
|
key: this.activeTrades ? 'current_rate' : 'close_rate',
|
||||||
label: this.activeTrades ? 'Current rate' : 'Close rate',
|
label: this.activeTrades ? 'Current rate' : 'Close rate',
|
||||||
|
formatter: (value) => formatPrice(value),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.activeTrades ? 'current_profit' : 'close_profit',
|
key: this.activeTrades ? 'current_profit' : 'close_profit',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user