Bisq markets: General trading volume graph.

This commit is contained in:
softsimon
2021-03-16 01:17:40 +07:00
parent 8e29a4cefd
commit da77dbece1
9 changed files with 385 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
import { HttpClient, HttpResponse, HttpParams } from '@angular/common/http';
import { Observable } from 'rxjs';
import { BisqTransaction, BisqBlock, BisqStats } from './bisq.interfaces';
import { BisqTransaction, BisqBlock, BisqStats, MarketVolume } from './bisq.interfaces';
const API_BASE_URL = '/bisq/api';
@@ -71,4 +71,8 @@ export class BisqApiService {
getMarketVolumesByTime$(period: string): Observable<any[]> {
return this.httpClient.get<any[]>(API_BASE_URL + '/markets/volumes/' + period);
}
getAllVolumesDay$(): Observable<MarketVolume[]> {
return this.httpClient.get<MarketVolume[]>(API_BASE_URL + '/markets/volumes?interval=week');
}
}