Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript π€
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
<div class="container">
<div class="mb-5 row">
<div class="col">
@if (hasPermissionToAccessAdminControl) {
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title>AI Service Health</mat-card-title>
</mat-card-header>
<mat-card-content>
@let aiServiceHealth = aiServiceHealth$ | async;
@if (isFetchFailure(aiServiceHealth)) {
π΄ {{ aiServiceHealth.fetchError }}
} @else if (aiServiceHealth) {
π’ {{ aiServiceHealth.status }}
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '1.5rem', width: '100%' }"
/>
}
</mat-card-content>
</mat-card>
}
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title>Status</mat-card-title>
</mat-card-header>
<mat-card-content>
@let status = status$ | async;
@if (isFetchFailure(status)) {
π΄ {{ status.fetchError }}
} @else if (status) {
<pre><code>{{ status | json }}</code></pre>
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '1.5rem', width: '100%' }"
/>
}
</mat-card-content>
</mat-card>
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title>Asset Profile</mat-card-title>
</mat-card-header>
<mat-card-content>
@let assetProfile = assetProfile$ | async;
@if (isFetchFailure(assetProfile)) {
π΄ {{ assetProfile.fetchError }}
} @else if (assetProfile) {
<pre><code>{{ assetProfile | json }}</code></pre>
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '1.5rem', width: '100%' }"
/>
}
</mat-card-content>
</mat-card>
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title>Lookup</mat-card-title>
</mat-card-header>
<mat-card-content>
@let symbols = lookupItems$ | async;
@if (isFetchFailure(symbols)) {
π΄ {{ symbols.fetchError }}
} @else if (symbols) {
<ul>
@for (item of symbols; track item.symbol) {
<li>{{ item.name }} ({{ item.symbol }})</li>
}
</ul>
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '1.5rem', width: '100%' }"
/>
}
</mat-card-content>
</mat-card>
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title>Lookup (ISIN)</mat-card-title>
</mat-card-header>
<mat-card-content>
@let isinSymbols = isinLookupItems$ | async;
@if (isFetchFailure(isinSymbols)) {
π΄ {{ isinSymbols.fetchError }}
} @else if (isinSymbols) {
<ul>
@for (item of isinSymbols; track item.symbol) {
<li>{{ item.name }} ({{ item.symbol }})</li>
}
</ul>
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '1.5rem', width: '100%' }"
/>
}
</mat-card-content>
</mat-card>
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title>Quotes</mat-card-title>
</mat-card-header>
<mat-card-content>
@let quotes = quotes$ | async;
@if (isFetchFailure(quotes)) {
π΄ {{ quotes.fetchError }}
} @else if (quotes) {
<ul>
@for (quote of quotes | keyvalue; track quote) {
<li>
{{ quote.key }}: {{ quote.value.marketPrice }}
{{ quote.value.currency }}
</li>
}
</ul>
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '1.5rem', width: '100%' }"
/>
}
</mat-card-content>
</mat-card>
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title>Historical</mat-card-title>
</mat-card-header>
<mat-card-content>
@let historicalData = historicalData$ | async;
@if (isFetchFailure(historicalData)) {
π΄ {{ historicalData.fetchError }}
} @else if (historicalData) {
<ul>
@for (item of historicalData | keyvalue; track item) {
<li>{{ item.key }}: {{ item.value.marketPrice }}</li>
}
</ul>
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '1.5rem', width: '100%' }"
/>
}
</mat-card-content>
</mat-card>
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title>Dividends</mat-card-title>
</mat-card-header>
<mat-card-content>
@let dividends = dividends$ | async;
@if (isFetchFailure(dividends)) {
π΄ {{ dividends.fetchError }}
} @else if (dividends) {
<ul>
@for (dividend of dividends | keyvalue; track dividend) {
<li>{{ dividend.key }}: {{ dividend.value.marketPrice }}</li>
}
</ul>
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '1.5rem', width: '100%' }"
/>
}
</mat-card-content>
</mat-card>
<div class="row">
@let marketDataOfMarkets = marketDataOfMarkets$ | async;
<div class="col-md-6">
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title class="mb-0">Markets</mat-card-title>
<mat-card-subtitle>Stocks</mat-card-subtitle>
</mat-card-header>
<mat-card-content class="pt-3">
@if (isFetchFailure(marketDataOfMarkets)) {
π΄ {{ marketDataOfMarkets.fetchError }}
} @else {
<gf-fear-and-greed-index
[fearAndGreedIndex]="
marketDataOfMarkets?.fearAndGreedIndex?.STOCKS?.marketPrice
"
[isLoading]="!marketDataOfMarkets"
/>
}
</mat-card-content>
</mat-card>
</div>
<div class="col-md-6">
<mat-card appearance="outlined" class="mb-3">
<mat-card-header>
<mat-card-title class="mb-0">Markets</mat-card-title>
<mat-card-subtitle>Cryptocurrencies</mat-card-subtitle>
</mat-card-header>
<mat-card-content class="pt-3">
@if (isFetchFailure(marketDataOfMarkets)) {
π΄ {{ marketDataOfMarkets.fetchError }}
} @else {
<gf-fear-and-greed-index
[fearAndGreedIndex]="
marketDataOfMarkets?.fearAndGreedIndex?.CRYPTOCURRENCIES
?.marketPrice
"
[isLoading]="!marketDataOfMarkets"
/>
}
</mat-card-content>
</mat-card>
</div>
</div>
</div>
</div>
</div>