mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Improve trade-detail view
This commit is contained in:
parent
e8a5a2deed
commit
e0cee7e731
|
@ -11,8 +11,8 @@
|
|||
{{ formatPrice(trade.initial_stop_loss) }}
|
||||
</ValuePair>
|
||||
<ValuePair description="Current stoploss dist">
|
||||
{{ formatPercent(trade.current_stoploss_dist_ratio) }} |
|
||||
{{ formatPrice(trade.current_stoploss_dist) }}
|
||||
{{ formatPercent(trade.stoploss_current_dist_ratio) }} |
|
||||
{{ formatPrice(trade.stoploss_current_dist) }}
|
||||
</ValuePair>
|
||||
<ValuePair description="Open Rate">{{ trade.open_rate }}</ValuePair>
|
||||
<ValuePair description="Close Rate" v-if="!trade.is_open">{{ trade.close_rate }}</ValuePair>
|
||||
|
|
|
@ -104,8 +104,11 @@ export default {
|
|||
console.log(item);
|
||||
},
|
||||
showDetails(trade) {
|
||||
console.log(trade);
|
||||
this.setDetailTrade(this.detailTradeId ? null : trade);
|
||||
if (this.detailTradeId === trade.trade_id) {
|
||||
this.setDetailTrade(null);
|
||||
} else {
|
||||
this.setDetailTrade(trade);
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user