1.0.0 • Published 6 years ago

buildteam-asset-price v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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