coingecko-openapi-client
Version:
Coingecko openapi client
38 lines (37 loc) • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GlobalService = void 0;
class GlobalService {
constructor(httpRequest) {
this.httpRequest = httpRequest;
}
/**
* Get cryptocurrency global data
* Get cryptocurrency global data
*
* Cache / Update Frequency: every 10 minutes
* @returns any Get global data - total_volume, total_market_cap, ongoing icos etc
* @throws ApiError
*/
getGlobal() {
return this.httpRequest.request({
method: 'GET',
url: '/global',
});
}
/**
* Get cryptocurrency global decentralized finance(defi) data
* Get Top 100 Cryptocurrency Global Eecentralized Finance(defi) data
*
* Cache / Update Frequency: every 60 minutes
* @returns void
* @throws ApiError
*/
getGlobalDecentralizedFinanceDefi() {
return this.httpRequest.request({
method: 'GET',
url: '/global/decentralized_finance_defi',
});
}
}
exports.GlobalService = GlobalService;