# bex-price

> Fetches BEX price from BitShares via CryptoFresh

Latest version **1.0.0** (published 2018-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install bex-price
pnpm add bex-price
yarn add bex-price
bun add bex-price
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-09-21 |
| First published | 2018-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 130.2 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Author | Jared Rice Sr. |
| Maintainers | dpay |
| Keywords | bts, blockchain, bitshares, buildteam, token, asset, price |

## Links

- npm: https://www.npmjs.com/package/bex-price
- Repository: https://github.com/dpays/bex-asset-price
- Homepage: https://github.com/dpays/bex-asset-price#readme
- Issues: https://github.com/dpays/bex-asset-price/issues
- npm.io page: https://npm.io/package/bex-price

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.18.0

## Recent versions

- 1.0.0 (latest) — 2018-09-21

## README

# BEX Price (USD)

Fetches [BEX](https://cryptofresh.com/a/BEX) price from BitShares via CryptoFresh

## Installation

```
npm i bex-price --save
```

## Import
```javascript
import getBexPrice from 'bex-price'
```

## Usage

Simple usage:

```javascript
  getBexPrice().then((r) => {
    console.log(r);
  }).catch(function(error) {
    console.error(error);
  });
```

Usage with options:

```javascript
  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

---
_Source: https://npm.io/package/bex-price · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
