2021-03-16 01:17:40 +07:00
|
|
|
<div class="container-xl">
|
|
|
|
|
|
|
|
<h1>Trading volume</h1>
|
|
|
|
|
|
|
|
<div id="volumeHolder">
|
|
|
|
<ng-container *ngIf="volumes$ | async as volumes">
|
|
|
|
<app-lightweight-charts-area [data]="volumes.data" [lineData]="volumes.linesData"></app-lightweight-charts-area>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2021-03-14 23:24:06 +07:00
|
|
|
<h1>Markets</h1>
|
2021-02-27 04:19:56 +07:00
|
|
|
<ng-container *ngIf="{ value: (tickers$ | async) } as tickers">
|
|
|
|
|
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<thead>
|
2021-03-13 18:24:50 +07:00
|
|
|
<th>Currency</th>
|
|
|
|
<th>Price</th>
|
|
|
|
<th>Volume (7d)</th>
|
|
|
|
<th>Trades (7d)</th>
|
2021-02-27 04:19:56 +07:00
|
|
|
</thead>
|
|
|
|
<tbody *ngIf="tickers.value; else loadingTmpl">
|
2021-03-16 01:17:40 +07:00
|
|
|
<tr *ngFor="let ticker of tickers.value; trackBy: trackByFn;">
|
|
|
|
<td><a [routerLink]="['/market' | relativeUrl, ticker.pair_url]">{{ ticker.market.rtype === 'crypto' ? ticker.market.lname : ticker.market.rname }} ({{ ticker.market.rtype === 'crypto' ? ticker.market.lsymbol : ticker.market.rsymbol }})</a></td>
|
2021-02-27 04:19:56 +07:00
|
|
|
<td>
|
|
|
|
<app-fiat *ngIf="ticker.market.rtype === 'crypto'; else fiat" [value]="ticker.last * 100000000"></app-fiat>
|
2021-02-28 17:18:29 +07:00
|
|
|
<ng-template #fiat>
|
|
|
|
<span class="green-color">{{ ticker.last | currency: ticker.market.rsymbol }}</span>
|
|
|
|
</ng-template>
|
2021-02-27 04:19:56 +07:00
|
|
|
</td>
|
2021-02-28 17:18:29 +07:00
|
|
|
<td>
|
|
|
|
<app-fiat [value]="ticker.volume?.volume"></app-fiat>
|
|
|
|
</td>
|
|
|
|
<td>{{ ticker.volume?.num_trades }}</td>
|
2021-02-27 04:19:56 +07:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ng-template #loadingTmpl>
|
|
|
|
<tr *ngFor="let i of [1,2,3,4,5,6,7,8,9,10]">
|
2021-02-28 17:18:29 +07:00
|
|
|
<td *ngFor="let j of [1, 2, 3, 4, 5, 6]"><span class="skeleton-loader"></span></td>
|
2021-02-27 04:19:56 +07:00
|
|
|
</tr>
|
2021-03-05 02:02:21 +07:00
|
|
|
</ng-template>
|