This commit is contained in:
Aleksandr Kraiz
2023-02-20 12:30:59 +04:00
parent 5fc8d488ee
commit eea77d48aa

View File

@@ -39,14 +39,14 @@ class PriceFeed {
return fetchWithValidation(url.toString(), candlesSchema);
};
getStatisticsOverview(exchange: Exchange | 'ALL' = 'ALL') {
getStatisticsOverview = (exchange: Exchange | 'ALL' = 'ALL') => {
const url = new URL(`${this.statisticsUrl}/overview`);
url.searchParams.append('exchange', exchange);
return fetchWithValidation(url.toString(), statisticsOverviewSchema);
}
getTopPairStatistics(exchange: Exchange | 'ALL' = 'ALL') {
getTopPairStatistics = (exchange: Exchange | 'ALL' = 'ALL') => {
const url = new URL(`${this.statisticsUrl}/top-pairs`);
url.searchParams.append('exchange', exchange);