Browse Source

Integrate last market price in admin market data

pull/3752/head
Thomas Kaul 11 months ago
parent
commit
524d47bb53
  1. 1
      apps/client/src/app/components/admin-market-data/admin-market-data.component.ts
  2. 15
      apps/client/src/app/components/admin-market-data/admin-market-data.html
  3. 2
      apps/client/src/app/components/admin-market-data/admin-market-data.module.ts

1
apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

@ -142,6 +142,7 @@ export class AdminMarketDataComponent
'dataSource',
'assetClass',
'assetSubClass',
'lastMarketPrice',
'date',
'activitiesCount',
'marketDataItemCount',

15
apps/client/src/app/components/admin-market-data/admin-market-data.html

@ -99,6 +99,21 @@
</td>
</ng-container>
<ng-container matColumnDef="lastMarketPrice">
<th *matHeaderCellDef class="px-1" mat-header-cell>
<ng-container i18n>Market Price</ng-container>
</th>
<td *matCellDef="let element" class="px-1" mat-cell>
<div class="d-flex justify-content-end">
<gf-value
[isCurrency]="true"
[locale]="user?.settings?.locale"
[value]="element.lastMarketPrice ?? ''"
/>
</div>
</td>
</ng-container>
<ng-container matColumnDef="date">
<th *matHeaderCellDef class="px-1" mat-header-cell>
<ng-container i18n>First Activity</ng-container>

2
apps/client/src/app/components/admin-market-data/admin-market-data.module.ts

@ -1,6 +1,7 @@
import { GfSymbolModule } from '@ghostfolio/client/pipes/symbol/symbol.module';
import { GfActivitiesFilterComponent } from '@ghostfolio/ui/activities-filter';
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator';
import { GfValueComponent } from '@ghostfolio/ui/value';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
@ -27,6 +28,7 @@ import { GfCreateAssetProfileDialogModule } from './create-asset-profile-dialog/
GfCreateAssetProfileDialogModule,
GfPremiumIndicatorComponent,
GfSymbolModule,
GfValueComponent,
MatButtonModule,
MatCheckboxModule,
MatMenuModule,

Loading…
Cancel
Save