Skip to content

Client to easily use Mercado Bitcoin APIs.

License

Notifications You must be signed in to change notification settings

rafaellaurindo/node-mercadobitcoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm GitHub issues license

Node Mercado Bitcoin 💱

Client to easily use Mercado Bitcoin APIs.

Installation

Use the npm to install node-mercadobitcoin.

npm install -S node-mercadobitcoin

Usage

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 🍕

1McMwihX3D2gwQqo3F9ez9namd2AB7U53B

License

MIT