mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Fix profit formatting
This commit is contained in:
parent
507cc538f6
commit
b0c69f6d77
|
@ -68,8 +68,6 @@ export default class TradeList extends Vue {
|
||||||
|
|
||||||
currentPage = 1;
|
currentPage = 1;
|
||||||
|
|
||||||
formatPercent = formatPercent;
|
|
||||||
|
|
||||||
get rows(): number {
|
get rows(): number {
|
||||||
return this.trades.length;
|
return this.trades.length;
|
||||||
}
|
}
|
||||||
|
@ -89,7 +87,7 @@ export default class TradeList extends Vue {
|
||||||
{
|
{
|
||||||
key: this.activeTrades ? 'current_profit' : 'close_profit',
|
key: this.activeTrades ? 'current_profit' : 'close_profit',
|
||||||
label: this.activeTrades ? 'Current profit %' : 'Profit %',
|
label: this.activeTrades ? 'Current profit %' : 'Profit %',
|
||||||
formatter: 'formatPercent',
|
formatter: (value) => formatPercent(value, 3),
|
||||||
},
|
},
|
||||||
{ key: 'open_date', label: 'Open date' },
|
{ key: 'open_date', label: 'Open date' },
|
||||||
{ key: 'close_date', label: 'Close date' },
|
{ key: 'close_date', label: 'Close date' },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user