buildteam-asset-price

1.0.0 • Public • Published

buildteam-asset-price Package Version

Fetches BUILDTEAM price from bitshares via CryptoFresh

Installation

npm i buildteam-asset-price --save

Import

import getBuildteamTokenPrice from 'buildteam-asset-price'

Usage

Simple usage:

  getBuildteamTokenPrice().then((r) => {
    console.log(r);
  }).catch(function(error) {
    console.error(error);
  });

Usage with options:

  const opts = {
    api: 'https://cryptofresh.com/api/asset/markets?asset=',
    bridge: 'BTS',
    token: 'BUILDTEAM'
  };
  getBuildteamTokenPrice('USD', opts).then((r) => {
    console.log(r);
  }).catch(function(error) {
    console.error(error);
  });

license

MIT

Package Sidebar

Install

npm i buildteam-asset-price

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.38 kB

Total Files

6

Last publish

Collaborators

  • raycoms
  • reggaemuffin
  • pauliusuza