# node-mercadobitcoin

> Client for Mercado Bitcoin Api and Trade Api.

Latest version **1.0.0** (published 2019-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-mercadobitcoin
pnpm add node-mercadobitcoin
yarn add node-mercadobitcoin
bun add node-mercadobitcoin
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-02-26 |
| First published | 2019-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rafael Laurindo |
| Maintainers | rafaellaurindo |
| Keywords | api, bitcoin, convert, cryptocurrency, currency, ethereum, exchange, litcoin, mercado bitcoin, ripple, trading |

## Links

- npm: https://www.npmjs.com/package/node-mercadobitcoin
- Repository: https://github.com/rafaellaurindo/node-mercadobitcoin
- Homepage: https://github.com/rafaellaurindo/node-mercadobitcoin#readme
- Issues: https://github.com/rafaellaurindo/node-mercadobitcoin/issues
- npm.io page: https://npm.io/package/node-mercadobitcoin

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.88.0

## 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.0 (latest) — 2019-02-26
- 0.0.6 — 2019-02-25
- 0.0.5 — 2019-02-24
- 0.0.4 — 2019-02-22
- 0.0.1 — 2019-02-21

## README

[![npm](https://img.shields.io/npm/v/node-mercadobitcoin.svg)](https://www.npmjs.com/package/node-mercadobitcoin)
[![GitHub issues](https://img.shields.io/github/issues/rafaellaurindo/node-mercadobitcoin.svg)](https://github.com/rafaellaurindo/node-mercadobitcoin/issues)
[![license](https://img.shields.io/github/license/rafaellaurindo/node-mercadobitcoin.svg)](http://spdx.org/licenses/MIT)

# Node Mercado Bitcoin :currency_exchange:

Client to easily use [Mercado Bitcoin](https://www.mercadobitcoin.com.br/) APIs.

## Installation

Use the [npm](https://www.npmjs.com/) to install node-mercadobitcoin.

```bash
npm install -S node-mercadobitcoin
```

## Usage
```javascript
const { Api } = require('node-mercadobitcoin');
const mbtcApi = new Api();

// // Get information with the last 24 hours of Bitcoin trading in Mercado Bitcoin.
mbtcApi.getTicker('btc', ticker => console.log(ticker.ticker));

// // Get order book of Litecoin in Mercado Bitcoin.
mbtcApi.getOrderBook('ltc', orderBook => console.log(orderBook));

// // Get history of Ripple negotiations in Mercado Bitcoin.
mbtcApi.getTrades('xrp', trades => console.log(trades));

// Get the daily summary of Ethereum trades made in Mercado Bitcoin.
mbtcApi.getDaySummary('eth', '2019-02-21', daySummary => console.log(daySummary));
```
## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

### Pay me a pizza :pizza:
1McMwihX3D2gwQqo3F9ez9namd2AB7U53B

## License

[MIT](https://choosealicense.com/licenses/mit/)

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