mirror of
https://github.com/freqtrade/frequi.git
synced 2024-09-21 18:11:08 +00:00
Simplify customtradelistentry
This commit is contained in:
parent
6121fb9d06
commit
d879e07d92
|
@ -7,22 +7,9 @@
|
||||||
<span class="mr-1 font-weight-bold">{{ trade.pair }}</span>
|
<span class="mr-1 font-weight-bold">{{ trade.pair }}</span>
|
||||||
<small class="text-secondary">(#{{ trade.trade_id }})</small>
|
<small class="text-secondary">(#{{ trade.trade_id }})</small>
|
||||||
</span>
|
</span>
|
||||||
<!-- <ValuePair description="Amount">{{ trade.amount }}</ValuePair> -->
|
|
||||||
<ValuePair v-if="showDetails" description="Open Rate">{{
|
|
||||||
formatPrice(trade.open_rate)
|
|
||||||
}}</ValuePair>
|
|
||||||
<!-- <span>Open rate {{ formatPrice(trade.open_rate) }} </span> -->
|
|
||||||
<ValuePair
|
|
||||||
v-if="showDetails && (trade.close_rate || trade.current_rate)"
|
|
||||||
description="Close Rate"
|
|
||||||
>{{ formatPrice(trade.close_rate || trade.current_rate || 0) }}</ValuePair
|
|
||||||
>
|
|
||||||
<small>
|
<small>
|
||||||
<DateTimeTZ :date="trade.open_timestamp" :date-only="true" title="open Date" />
|
<DateTimeTZ :date="trade.open_timestamp" :date-only="true" title="open Date" />
|
||||||
</small>
|
</small>
|
||||||
<ValuePair v-if="showDetails && trade.close_timestamp" description="Close date"
|
|
||||||
><DateTimeTZ :date="trade.close_timestamp"
|
|
||||||
/></ValuePair>
|
|
||||||
</div>
|
</div>
|
||||||
<trade-profit class="col-5" :trade="trade" />
|
<trade-profit class="col-5" :trade="trade" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -35,14 +22,12 @@ import { defineComponent } from '@vue/composition-api';
|
||||||
import { formatPercent, formatPrice } from '@/shared/formatters';
|
import { formatPercent, formatPrice } from '@/shared/formatters';
|
||||||
import { Trade } from '@/types';
|
import { Trade } from '@/types';
|
||||||
import DateTimeTZ from '@/components/general/DateTimeTZ.vue';
|
import DateTimeTZ from '@/components/general/DateTimeTZ.vue';
|
||||||
import ValuePair from '@/components/general/ValuePair.vue';
|
|
||||||
import TradeProfit from './TradeProfit.vue';
|
import TradeProfit from './TradeProfit.vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
DateTimeTZ,
|
DateTimeTZ,
|
||||||
TradeProfit,
|
TradeProfit,
|
||||||
ValuePair,
|
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
trade: {
|
trade: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user