0.0.5 • Published 10 years ago

mercado-bitcoin v0.0.5

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

Build Status NPM version Code Climate Bitdeli Badge

Mercado Bitcoin API

This is a simple implementation of the www.mercado-bitcoin.com.ar JSON API written for nodejs.

Installation

Using npm:

$ npm [-g] install mercado-bitcoin

In Node.js:

var mb = require("mercado-bitcoin");

Synopsis

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);
 });

API

mercadoBitcoin.last(method, symbol, callback(err, response))

Gets the latest price.

mercadoBitcoin.average(method, callback(err, response))

Gets the latest average price.

mercadoBitcoin.convert(method, amount, callback(err, response))

Gets the last convert between Bitcoins and Currency.

More API info:

For all available methods please visit: http://www.mercado-bitcoin.com.ar/documentation

0.0.5

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago