Skip to content

Javascript Library To Retrieve The Price of BEX From Participating Exchanges

License

Notifications You must be signed in to change notification settings

dpays/bex-price

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Javascript Library To Retrieve The Price of BEX From Participating Exchanges

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published