# react-crypto-price

> React hook that fetch the price of crypto in USDT from Binance API.

Latest version **0.2.2** (published 2022-09-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-crypto-price
pnpm add react-crypto-price
yarn add react-crypto-price
bun add react-crypto-price
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2022-09-06 |
| First published | 2022-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 10 |
| Unpacked size | 79.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rui Santiago |
| Maintainers | sainthiago |
| Keywords | react, crypto, crypo prices, binance, hook |

## Links

- npm: https://www.npmjs.com/package/react-crypto-price
- Repository: https://github.com/sainthiago/react-crypto-price
- Homepage: https://github.com/sainthiago/react-crypto-price#readme
- Issues: https://github.com/sainthiago/react-crypto-price/issues
- npm.io page: https://npm.io/package/react-crypto-price

## Dependencies (10)

- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [rollup-plugin-dts](https://npm.io/package/rollup-plugin-dts.md) ^4.2.2
- [@rollup/plugin-url](https://npm.io/package/@rollup/plugin-url.md) ^7.0.0
- [rollup-plugin-terser](https://npm.io/package/rollup-plugin-terser.md) ^7.0.2
- [rollup-plugin-postcss](https://npm.io/package/rollup-plugin-postcss.md) ^4.0.2
- [rollup-plugin-summary](https://npm.io/package/rollup-plugin-summary.md) ^1.4.3
- [@rollup/plugin-commonjs](https://npm.io/package/@rollup/plugin-commonjs.md) ^22.0.2
- [@rollup/plugin-typescript](https://npm.io/package/@rollup/plugin-typescript.md) ^8.4.0
- [@rollup/plugin-node-resolve](https://npm.io/package/@rollup/plugin-node-resolve.md) ^13.3.0
- [rollup-plugin-peer-deps-external](https://npm.io/package/rollup-plugin-peer-deps-external.md) ^2.2.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2022-09-06
- 0.2.1 — 2022-09-04
- 0.2.0 — 2022-09-04
- 0.1.0 — 2022-09-03
- 0.0.2 — 2022-09-03
- 0.0.1 — 2022-09-02

## README

![Licence](https://img.shields.io/badge/license-MIT-blue.svg) [![npm version](https://img.shields.io/npm/v/react-crypto-price.svg?style=flat)](https://www.npmjs.com/package/react-crypto-price)
[![Downloads](https://img.shields.io/npm/dt/react-crypto-price.svg)](https://www.npmjs.com/package/react-crypto-price)

## React Crypto Price

React hook that fetch the price of crypto in USDT from Binance API.

## Installation

`npm i react-crypto-price`

## Live Demo

https://codesandbox.io/s/react-crypto-price-example-7unmvs

## Example

```javascript
import { useCryptoPriceController, ChainSymbols } from "react-crypto-price";

export default function App() {
  const { price } = useCryptoPriceController({ symbol: ChainSymbols.NEAR });
  return (
    <div className="App">
      <h1>react-crypto-price example</h1>
      <h3>current NEAR price in USDT</h3>
      <p>{price}$</p>
    </div>
  );
}
```

## API

| Property | Type         | Description                |
| :------- | :----------- | :------------------------- |
| symbol   | ChainSymbols | Crypto to fetch the price. |

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