Create stacked pools historical hashrates to see dominance over time

This commit is contained in:
nymkappa
2022-02-24 16:55:18 +09:00
parent a214c5ca20
commit 78fa3e33cd
16 changed files with 485 additions and 38 deletions

View File

@@ -163,4 +163,11 @@ export class ApiService {
(interval !== undefined ? `/${interval}` : '')
);
}
getHistoricalPoolsHashrate$(interval: string | undefined): Observable<any> {
return this.httpClient.get<any[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/hashrate/pools` +
(interval !== undefined ? `/${interval}` : '')
);
}
}