gnt-rates

1.2.2 • Public • Published

This package fetches gnt (golem) updated rates via coinmarketcap API

Example usage:

const { gnt } = require ('gnt-rates'); //import library

. . .

gnt('PLN').then(data => console.log(data)); // use your own currency (default : USD)

Example response:

{ id: 1455,
  name: 'Golem',
  symbol: 'GNT',
  website_slug: 'golem-network-tokens',
  rank: 52,
  circulating_supply: 959842000,
  total_supply: 1000000000,
  max_supply: null,
  quotes: 
   { USD: 
      { price: 0.0998828446,
        volume_24h: 2069316.28341413,
        market_cap: 95871749,
        percent_change_1h: -0.29,
        percent_change_24h: -18.64,
        percent_change_7d: -38.02 },
     EUR: 
      { price: 0.0872289866,
        volume_24h: 1807160.8114172416,
        market_cap: 83726045,
        percent_change_1h: -0.29,
        percent_change_24h: -18.64,
        percent_change_7d: -38.02 } },
  last_updated: 1542644551 }

Readme

Keywords

Package Sidebar

Install

npm i gnt-rates

Weekly Downloads

0

Version

1.2.2

License

ISC

Unpacked Size

2.05 kB

Total Files

3

Last publish

Collaborators

  • musasanli