Socket
Book a DemoInstallSign in
Socket

mercado-bitcoin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mercado-bitcoin

Client for MercadoBitcoin API

0.0.5
latest
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

bitcoin

FAQs

Package last updated on 07 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.