Bisq markets: Recent trades. Separate Bisq master page.

This commit is contained in:
softsimon
2021-03-13 18:24:50 +07:00
parent 0de2c105d4
commit 01d5a6cfd9
11 changed files with 235 additions and 41 deletions

View File

@@ -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')),