This is a simple implementation of the www.mercado-bitcoin.com.ar JSON API written for nodejs.
Using npm
:
$ npm [-g] install mercado-bitcoin
In Node.js:
var mb = require("mercado-bitcoin");
var amount, mercadoBitcoin, method;
mercadoBitcoin = require('../lib/mercado-bitcoin');
amount = 0.1;
method = 'convert_BTC_ARS_Last';
mercadoBitcoin.convert(method, amount, function (err, response) {
console.log(response);
});
Gets the latest price.
Gets the latest average price.
Gets the last convert between Bitcoins and Currency.
For all available methods please visit: http://www.mercado-bitcoin.com.ar/documentation