buildteam-asset-price
v1.0.0
Published
Fetches BUILDTEAM price from bitshares via CryptoFresh
Downloads
4
Readme
buildteam-asset-price
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