Round open/close rates to 8 digits

This commit is contained in:
Matthias 2021-09-04 16:44:48 +02:00
parent 094d47eb7c
commit dd0589776c

View File

@ -168,12 +168,12 @@ export default class TradeList extends Vue {
{ {
key: 'open_rate', key: 'open_rate',
label: 'Open rate', label: 'Open rate',
formatter: (value: number) => this.formatPrice(value, 8), formatter: (value: number) => this.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: number) => this.formatPrice(value, 8), formatter: (value: number) => this.formatPrice(value),
}, },
{ {
key: 'profit', key: 'profit',