bex-price

1.0.0 • Public • Published

BEX Price (USD)

Fetches BEX price from BitShares via CryptoFresh

Installation

npm i bex-price --save

Import

import getBexPrice from 'bex-price'

Usage

Simple usage:

  getBexPrice().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: 'BEX'
  };
  getBexPrice('USD', opts).then((r) => {
    console.log(r);
  }).catch(function(error) {
    console.error(error);
  });

license

MIT

Package Sidebar

Install

npm i bex-price

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

133 kB

Total Files

7

Last publish

Collaborators

  • dpay