Use timestamp for stoploss update time

This commit is contained in:
Matthias 2020-06-05 11:24:44 +02:00
parent 39eef24daf
commit 408e9c56d1
2 changed files with 19 additions and 2 deletions

View File

@ -24,4 +24,4 @@ jobs:
- name: Run Lint
run: |
npm run lint-ci
yarn lint-ci

View File

@ -4,6 +4,10 @@
<label class="col-4">TradeId</label>
<div class="col-8">{{ trade.trade_id }}</div>
</div>
<div class="row">
<label class="col-4">Pair</label>
<div class="col-8">{{ trade.pair }}</div>
</div>
<div class="row">
<label class="col-4">Stoploss</label>
<div class="col-8">
@ -40,6 +44,18 @@
<label class="col-4">Max Rate</label>
<div class="col-8">{{ trade.max_rate }}</div>
</div>
<div class="row">
<label class="col-4">Open date</label>
<div class="col-8">{{ timestampms(trade.open_timestamp) }}</div>
</div>
<div class="row" v-if="trade.close_date">
<label class="col-4">Close date</label>
<div class="col-8">{{ timestampms(trade.close_timestamp) }}</div>
</div>
<div class="row">
<label class="col-4">Stoploss last updated</label>
<div class="col-8">{{ timestampms(trade.stoploss_last_update_timestamp) }}</div>
</div>
<div class="row">
<label class="col-4">Current profit</label>
<div class="col-8">{{ trade.current_profit_abs }}</div>
@ -48,7 +64,7 @@
</template>
<script>
import { formatPercent, formatPrice } from '@/shared/formatters';
import { formatPercent, formatPrice, timestampms } from '@/shared/formatters';
export default {
name: 'TradeDetail',
@ -61,6 +77,7 @@ export default {
methods: {
formatPercent,
formatPrice,
timestampms,
},
};
</script>