2021-03-16 01:17:40 +07:00
|
|
|
<div class="container-xl">
|
|
|
|
|
|
|
|
<h1>Trading volume</h1>
|
|
|
|
|
|
|
|
<div id="volumeHolder">
|
2021-04-21 20:22:34 +04:00
|
|
|
<ng-template #loadingVolumes>
|
|
|
|
<div class="text-center loadingVolumes">
|
|
|
|
<div class="spinner-border text-light"></div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
<ng-container *ngIf="volumes$ | async as volumes; else loadingVolumes">
|
2021-03-16 01:17:40 +07:00
|
|
|
<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-04-23 15:09:51 +04:00
|
|
|
<th>Currency <button [disabled]="(sort$ | async) === 'name'" class="btn btn-link btn-sm" (click)="sort('name')"><fa-icon [icon]="['fas', 'chevron-down']" [fixedWidth]="true"></fa-icon></button></th>
|
2021-03-13 18:24:50 +07:00
|
|
|
<th>Price</th>
|
2021-04-23 15:09:51 +04:00
|
|
|
<th>Volume (7d) <button [disabled]="(sort$ | async) === 'volumes'" class="btn btn-link btn-sm" (click)="sort('volumes')"><fa-icon [icon]="['fas', 'chevron-down']" [fixedWidth]="true"></fa-icon></button></th>
|
|
|
|
<th>Trades (7d) <button [disabled]="(sort$ | async) === 'trades'" class="btn btn-link btn-sm" (click)="sort('trades')"><fa-icon [icon]="['fas', 'chevron-down']" [fixedWidth]="true"></fa-icon></button></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;">
|
2021-04-23 15:09:51 +04:00
|
|
|
<td><a [routerLink]="['/market' | relativeUrl, ticker.pair_url]">{{ ticker.name }})</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>
|
|
|
|
|
2021-04-23 03:49:55 +04:00
|
|
|
<br><br>
|
|
|
|
|
2021-04-24 20:33:56 +04:00
|
|
|
<h2>Latest trades</h2>
|
2021-04-23 03:49:55 +04:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<thead>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Price</th>
|
2021-04-24 20:33:56 +04:00
|
|
|
<th>Trade amount</th>
|
2021-04-23 03:49:55 +04:00
|
|
|
<th>Trade amount</th>
|
|
|
|
</thead>
|
|
|
|
<tbody *ngIf="trades$ | async as trades; else loadingTmpl">
|
|
|
|
<tr *ngFor="let trade of trades">
|
|
|
|
<td>
|
|
|
|
{{ trade.trade_date | date:'yyyy-MM-dd HH:mm' }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<ng-container *ngIf="trade._market.rtype === 'fiat'; else priceCrypto"><span class="green-color">{{ trade.price | currency: trade._market.rsymbol }}</span></ng-container>
|
|
|
|
<ng-template #priceCrypto>{{ trade.price | number: '1.2-' + trade._market.rprecision }} {{ trade._market.rsymbol }}</ng-template>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<ng-container *ngIf="trade._market.rtype === 'fiat'; else volumeCrypto"><span class="green-color">{{ trade.volume | currency: trade._market.rsymbol }}</span></ng-container>
|
|
|
|
<ng-template #volumeCrypto>{{ trade.volume | number: '1.2-' + trade._market.rprecision }} {{ trade._market.rsymbol }}</ng-template>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<ng-container *ngIf="trade._market.ltype === 'fiat'; else amountCrypto"><span class="green-color">{{ trade.amount | currency: trade._market.rsymbol }}</span></ng-container>
|
|
|
|
<ng-template #amountCrypto>{{ trade.amount | number: '1.2-' + trade._market.lprecision }} {{ trade._market.lsymbol }}</ng-template>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-02-27 04:19:56 +07:00
|
|
|
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ng-template #loadingTmpl>
|
|
|
|
<tr *ngFor="let i of [1,2,3,4,5,6,7,8,9,10]">
|
2021-04-23 03:49:55 +04:00
|
|
|
<td *ngFor="let j of [1, 2, 3, 4]"><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>
|