JSPM

coinmarketcaps-api

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q35646F
  • License MIT

api for coinmarketcap

Package Exports

  • coinmarketcaps-api
  • coinmarketcaps-api/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (coinmarketcaps-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

version enviroment language

Introduction

Api for coinmarketcap, where it is possible to obtain information on daily quotes, Currencies, most quoted pairs and any information provided by CoinMarketcap charts

Install

download this repository at the root of your project or use NPM to install this library in your Node project.

~$ npm install coinmarketcaps-api --save

import

To use this library, it is necessary to import and build it into your project's index file or wherever you want to use it.

import marketcap from "./index.js";

/*
If necessary, you can define the API version you want to use and the data path you want to get.
*/
var coin = new marketcap();

(async () => {
     // var coins = await coin.all()
     // var coins = await coin.exchangeMap('binance')
     // var coins = await coin.coinMap('bitcoin')
     // var coins = await coin.rank();
     // var coins = await coin.halfYear(1);
     // var coins = await coin.historical(2);
     var coins = await coin.query();
     //var coins = await coin.category();
     console.log(coins)
})();

Contact Dev

  • @victorRatts: Telegram