Bisq markets: Recent trades. Separate Bisq master page.
This commit is contained in:
@@ -16,8 +16,9 @@ export class BisqMarketComponent implements OnInit, OnDestroy {
|
||||
hlocData$: Observable<any>;
|
||||
currency$: Observable<any>;
|
||||
offers$: Observable<any>;
|
||||
trades$: Observable<any>;
|
||||
radioGroupForm: FormGroup;
|
||||
defaultInterval = 'half_hour';
|
||||
defaultInterval = 'day';
|
||||
|
||||
constructor(
|
||||
private websocketService: WebsocketService,
|
||||
@@ -43,6 +44,12 @@ export class BisqMarketComponent implements OnInit, OnDestroy {
|
||||
})
|
||||
);
|
||||
|
||||
this.trades$ = this.route.paramMap
|
||||
.pipe(
|
||||
map(routeParams => routeParams.get('pair')),
|
||||
switchMap((marketPair) => this.bisqApiService.getMarketTrades$(marketPair)),
|
||||
);
|
||||
|
||||
this.offers$ = this.route.paramMap
|
||||
.pipe(
|
||||
map(routeParams => routeParams.get('pair')),
|
||||
|
||||
Reference in New Issue
Block a user