mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
Fix table column formatting
This commit is contained in:
parent
9e77a4cdba
commit
bf1495b26c
|
@ -3,11 +3,11 @@
|
|||
<ValuePair description="TradeId">{{ trade.trade_id }}</ValuePair>
|
||||
<ValuePair description="Pair">{{ trade.pair }}</ValuePair>
|
||||
<ValuePair description="Stoploss">
|
||||
{{ formatPercent(trade.stop_loss_pct / 100) }} |
|
||||
{{ formatPercent(trade.stop_loss_ratio) }} |
|
||||
{{ formatPrice(trade.stop_loss) }}
|
||||
</ValuePair>
|
||||
<ValuePair description="Initial Stoploss">
|
||||
{{ formatPercent(trade.initial_stop_loss_pct / 100) }} |
|
||||
{{ formatPercent(trade.initial_stop_loss_ratio) }} |
|
||||
{{ formatPrice(trade.initial_stop_loss) }}
|
||||
</ValuePair>
|
||||
<ValuePair description="Current stoploss dist">
|
||||
|
@ -26,7 +26,7 @@
|
|||
{{ timestampms(trade.stoploss_last_update_timestamp) }}
|
||||
</ValuePair>
|
||||
<ValuePair description="Current profit" v-if="trade.current_profit_abs">
|
||||
{{ trade.current_profit_abs }}
|
||||
{{ trade.current_profit_abs }} ({{ formatPercent(trade.current_profit) }})
|
||||
</ValuePair>
|
||||
</b-card>
|
||||
</template>
|
||||
|
|
|
@ -72,6 +72,8 @@ export default class TradeList extends Vue {
|
|||
|
||||
currentPage = 1;
|
||||
|
||||
formatPercent = formatPercent;
|
||||
|
||||
get rows(): number {
|
||||
return this.trades.length;
|
||||
}
|
||||
|
@ -90,7 +92,7 @@ export default class TradeList extends Vue {
|
|||
},
|
||||
{
|
||||
key: this.activeTrades ? 'current_profit' : 'close_profit',
|
||||
label: this.activeTrades ? 'Current profit' : 'Profit',
|
||||
label: this.activeTrades ? 'Current profit %' : 'Profit %',
|
||||
formatter: 'formatPercent',
|
||||
},
|
||||
{ key: 'open_date', label: 'Open date' },
|
||||
|
@ -98,8 +100,6 @@ export default class TradeList extends Vue {
|
|||
...(this.activeTrades ? [{ key: 'actions' }] : []),
|
||||
];
|
||||
|
||||
formatPercent;
|
||||
|
||||
profitSymbol(item) {
|
||||
// Red arrow / green circle
|
||||
return item.close_profit < 0 || item.current_profit < 0 ? `🔴` : `🟢`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user