coinmarketcap
API
ticker([options])
Get a list of assets and their info.
options
(Object) Optional.
limit
(Number) Only return the top limit
assets. Default is to get all assets.convert
(String) Return price, 24h volume, and market cap in terms of another currency.
Returns a promise.
Example:
await coinmarketcap.ticker({
limit: 10,
convert: 'eur'
})
tickerByAsset(assetID, [options])
Get info about a particular asset.
assetID
(String) Asset ID (i.e 'bitcoin'
)options
(Object) Optional.
convert
(String) Return price, 24h volume, and market cap in terms of another currency.
Returns a promise.
Example:
await coinmarketcap.tickerByAsset('bitcoin', { convert: 'eur' })
global([options])
Get global info.
options
(Object) Optional.
convert
(String) Return 24h volume, and market cap in terms of another currency.
Returns a promise.
Example:
await coinmarketcap.ticker()
License
MIT