coingecko-openapi-client
Version:
Coingecko openapi client
25 lines (24 loc) • 858 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TrendingService = void 0;
class TrendingService {
constructor(httpRequest) {
this.httpRequest = httpRequest;
}
/**
* Get trending search coins (Top-7) on CoinGecko in the last 24 hours
* * Top-7 trending coins on CoinGecko as searched by users in the last 24 hours (Ordered by most popular first).
* * Top-5 trending NFTs on CoinGecko based on the highest trading volume in the last 24 hours
*
* Cache / Update Frequency: every 10 minutes
* @returns any List trending coins by most popular first
* @throws ApiError
*/
getSearchTrending() {
return this.httpRequest.request({
method: 'GET',
url: '/search/trending',
});
}
}
exports.TrendingService = TrendingService;