# crypto-price-fetcher

> A simple and efficient Node.js package to fetch real-time cryptocurrency prices.

Latest version **1.0.2** (published 2023-12-27) · ISC license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2023-12-27 |
| First published | 2023-12-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | UnknownScripter99 |
| Maintainers | unknownscripter99 |
| Keywords | cryptocurrency, crypto, prices, real-time, coin, API, price, cryptocurrency prices, cryptocurrency info |

## Links

- npm: https://www.npmjs.com/package/crypto-price-fetcher
- npm.io page: https://npm.io/package/crypto-price-fetcher

## Dependencies (1)

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

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2023-12-27
- 1.0.1 — 2023-12-25
- 1.0.0 — 2023-12-25

## README

# crypto-price-fetcher

**crypto-price-fetcher** is an npm package that simplifies the retrieval of cryptocurrency prices from the Binance API. It provides functions to fetch detailed ticker information for specific cryptocurrency symbols and get an overview of current prices for multiple symbols.

## Installation

To install **crypto-price-fetcher**, use npm:

```bash
npm install crypto-price-fetcher
```

# Usage
To use the package, require the **crypto-price-fetcher** module:

```js
const { getCryptoPrices } = require("crypto-price-fetcher");
```

**getCryptoPrices(symbols)**
This function fetches the current prices of multiple cryptocurrencies for a list of symbols.
Example:

```js
// Define symbols 
const symbols = ['BTCUSDT', 'ETHUSDT'];

// Call the function to get cryptocurrency prices
getCryptoPrices(symbols)
  .then(prices => {
    // Display the prices
    console.log('Cryptocurrency Prices:');
    Object.entries(prices).forEach(([symbol, data]) => {
      console.log(`${symbol}:`);
      console.log(`  Last Price: $${data.lastPrice}`);
      console.log(`  Price Change Percent: ${data.priceChangePercent}%`);
      console.log(`  Quote Volume: $${data.quoteVolume}`);
      console.log(`  Price Change: $${data.priceChange}`);
      console.log(`  High Price: $${data.highPrice}`);
      console.log(`  Low Price: $${data.lowPrice}`);
    });
  })
  .catch(error => {
    console.error('Error:', error.message);
  });
```
# Support
If you facing any issues then you can contact the developer on telegram **@UnknownScripter99**.
```

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