
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@crypto-coffee/coingecko-api
Advanced tools
[](https://github.com/michael-siek/coingecko-api/graphs/contributors) [](https://www.npmjs.com/p
An open-source TypeScript wrapper for the the CoinGecko API
npm install @crypto-coffee/coingecko-api
import CoinGeckoApi from '@crypto-coffee/coingecko-api'
;(async () => {
try {
const coinGeckoApi = new CoinGeckoApi()
const results = await coinGeckoApi.simple({
ids: 'Bitcoin',
vs_currencies: 'usd'
})
console.log(results)
} catch (err) {
// do something with the error
}
})()
We have supplied the majority of CoinGecko's API. The available endpoints are supplied below:
Pingconst result = await coinGeckoApi.ping()
/simple/price// Single id
const results = await coinGeckoApi.simple({
vs_currencies: 'usd'
id: 'bitcoin'
})
// Multiple ids
const results = await coinGeckoApi.simple({
vs_currencies: 'usd'
id: ['bitcoin', 'Ethereum']
})
/simple/token_price/{id}// single contract_address
const results = await coinGeckoApi.simpleTokenPrice({
'binance-smart-chain', {
contract_addresses: '0x00',
vs_currencies: 'usd'
}
})
// Multiple contract_addresses
const results = await coinGeckoApi.simpleTokenPrice({
'binance-smart-chain', {
contract_addresses: ['0x00', '0x001'],
vs_currencies: 'usd'
}
})
/simple/supported_vs_currenciesconst results = await coinGeckoApi.supportedCurrencies()
/coins/listconst results = await coinGeckoApi.coinList()
/coins/marketsconst results = await coinGeckoApi.coinMarkets({ vs_currency: 'usd' })
/coins/{id}const results = await coinGeckoApi.coinMarkets({ id: 'bitcoin' })
/coins/{id}/tickersconst results = await coinGeckoApi.coinTickers('bitcoin', {
exchange_ids: 'binance'
})
const { data, request } = await coinGeckoApi.coinTickers('bitcoin', {
exchange_ids: 'binance'
})
/coins/{id}/historyconst results = await coinGeckoApi.coinHistory('bitcoin', '30-12-2017', {
localization: false
})
const results = await coinGeckoApi.coinHistory('bitcoin', '30-12-2017')
/coins/{id}/market_chartconst results = await coinGeckoApi.coinMarketChart('bitcoin', {
vs_currency: 'usd',
days: '1'
})
/coins/{id}/market_chart/rangeconst results = await coinGeckoApi.coinMarketChartRange('bitcoin', {
vs_currency: 'usd',
from: '1392577232',
to: '1422577232'
})
/coins/{id}/ohlcconst results = await coinGeckoApi.coinOHLC('bitcoin', {
vs_currency: 'usd',
days: 7
})
/coins/{id}/contract/{contract_address}const results = await coinGeckoApi.contractInformation(
'binance-smart-chain',
'0x00'
)
/coins/{id}/contract/{contract_address}/market_chart/const results = await coinGeckoApi.contractMarketChart(
'binance-smart-chain',
'0x00',
{
vs_currency: 'usd',
days: '1'
}
)
/coins/{id}/contract/{contract_address}/market_chart/rangeconst results = await coinGeckoApi.contractMarketChartRange(
'binance-smart-chain',
'0x00',
{
vs_currency: 'usd',
from: '1619881896',
to: '1619968296'
}
)
/asset_platformsconst results = await coinGeckoApi.assetPlatforms()
/coins/categories/listconst results = await coinGeckoApi.categoriesList()
/coins/categoriesconst results = await coinGeckoApi.categoriesListMarketData()
/exchangesconst results = await coinGeckoApi.exchangesList()
/exchanges/listconst results = await coinGeckoApi.exchangesList()
/exchanges/{id}const results = await coinGeckoApi.exchangesById('binance')
/exchanges/{id}/tickersconst results = await coinGeckoApi.exchangeTickers('binance')
/exchanges/{id}/volume_chartconst results = await coinGeckoApi.exchangesVolumeChart('binance', 1)
This package is maintained by Zidious(Gabe) and Michael. If any of the endpoints that are supplied by CoinGecko and are not in this package please only an issue and we will get them added as soon as possible.
:coffee: :coffee:
FAQs
[](https://github.com/michael-siek/coingecko-api/graphs/contributors) [](https://www.npmjs.com/p
The npm package @crypto-coffee/coingecko-api receives a total of 8 weekly downloads. As such, @crypto-coffee/coingecko-api popularity was classified as not popular.
We found that @crypto-coffee/coingecko-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Google’s UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.