Nebulous Plasma Muffin

    coinmarketcap-cli-api

    1.1.0 • Public • Published

    coinmarketcap-api

    An API for querying coinmarketcap.com

    Install

    $ npm install coinmarketcap-cli-api
    

    API

    getMarkets(currency)

    Returns a list maps containing market information by exchange

    [
    { Exchange: 'Bitfinex',
      Pair: 'BTC/USD',
      'Volume (%)': '11.10%',
      'Volume (24h)': '$252,068,000',
      Price: '$7078.40' },
    { Exchange: 'bitFlyer',
      Pair: 'BTC/JPY',
      'Volume (%)': '5.99%',
      'Volume (24h)': '$136,021,000',
      Price: '$7175.06' },
      ...
    ]
    

    getMarketCap(currency)

    Returns a map

    {
        Symbol: BTC,
        Currency: Bitcoin,
        Market cap: $100,000,000,000
        Market cap rank: 1
    }
    

    getAllMarketCaps()

    Returns an array

    [ { Symbol: 'BTC',
        Currency: 'Bitcoin',
        'Market cap': '$128,982,906,067',
        'Market cap rank': 1 },
      { Symbol: 'ETH',
        Currency: 'Ethereum',
        'Market cap': '$28,878,646,139',
        'Market cap rank': 2 },
        ...
    ]
    

    Related

    License

    Apache 2.0 © Eric Crosson

    Install

    npm i coinmarketcap-cli-api

    DownloadsWeekly Downloads

    20

    Version

    1.1.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • hamroctopus