buildteam-asset-price

Fetches BUILDTEAM price from bitshares via CryptoFresh

Usage no npm install needed!

<script type="module">
  import buildteamAssetPrice from 'https://cdn.skypack.dev/buildteam-asset-price';
</script>

README

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