@olexiyb/coingecko-api-v3
v0.0.26
Published
The nodejs api library for accessing coingecko api v3 , develop with typescript
Downloads
9
Readme
coingecko-api-v3
The nodejs api library for accessing coingecko api v3 , develop with typescript with zero dependencies
Get started
npm install coingecko-api-v3
import { CoinGeckoClient } from 'coingecko-api-v3';
const client = new CoinGeckoClient({
timeout: 10000,
autoRetry: true,
});
const trendingSearch = await client.trending();
Options
- timeout (optional): The http timeout, default 30s
- autoRetry (optional): Auto retry if the http response code is 429 - to many request
Supported API method
| Endpoint | function | tested? | | ---------------------------------------------------------- | ---------------------------------: | :-----: | | /ping | client.ping() | ✅ | | /simple/price | client.simplePrice() | ✅ | | /simple/token_price/:id | client.simplePriceId() | ✅ | | /simple/supported_vs_currencies | client.simpleSupportedCurrencies() | ✅ | | /coins/list | client.coinList() | ✅ | | /coins/markets | client.coinMarkets() | ✅ | | /coins/:id | client.coinId() | ✅ | | /coins/:id/tickers | client.coinIdTickers() | ✅ | | /coins/:id/history | client.coinIdHistory() | ✅ | | /coins/:id/market_history | client.coinIdMarketHistory() | ✅ | | /coins/id/market_chart | client.coinIdMarketChart() | ✅ | | /coins/{id}/market_chart/range | client.coinIdMarketChartRange() | ✅ | | /coins/{id}/status_updates | client.coinIdStatusUpdates() | ✅ | | /coins/{id}/ohlc | client.coinIdOHLC() | ✅ | | /coins/{id}/contract/{contract_address} | client.contract() | ✅ | | /coins/{id}/contract/{contract_address}/market_chart/ | client.contractMarketChart() | ✅ | | /coins/{id}/contract/{contract_address}/market_chart/range | client.contractMarketChartRange() | ✅ | | /exchanges | client.exchanges() | ✅ | | /exchanges/list | client.exchangeList() | ✅ | | /exchanges/{id}/tickers | client.exchangeIdTickers() | ✅ | | /exchanges/{id}/status_update | client.exchangeIdStatusUpdates() | ✅ | | /exchanges/{id}/volume_chart | client.exchangeIdVolumeChart() | ✅ | | /finance_platforms | client.financePlatforms() | ✅ | | /finance_products | client.financeProducts() | ✅ | | /indexes | client.indexes() | ✅ | | /indexes/{market_id}/{id} | client.indexesMarketId() | ✅ | | /indexes/list | client.indexesList() | ✅ | | /indexes/list_by_market_and_id/{market_id}/{id} | client.financeProducts() | ✅ | | /derivatives | client./derivatives() | ✅ | | /derivatives/exchanges | client./derivativesExchanges() | ✅ | | /derivatives/exchanges/{id} | client./derivativesExchangesId() | ✅ | | /status_updates | client.statusUpdates() | ✅ | | /exchange_rates | client.exhangesRates() | ✅ | | /search | client.search() | ✅ | | /search/trending | client.trending() | ✅ | | /global | client.global() | ✅ | | /status_updates | client.statusUpdates() | ✅ | | /global/decentralized_finance_defi | client.globalDefi() | ✅ |
Development
e