mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 14:12:35 +03:00
Bind fix
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user