0.0.1 • Published 9 years ago

melotic v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

melotic

The melotic REST api https://www.melotic.com/apidoc wrapped for NodeJS/JavaScript.

Why we created it?

We created this API wrapper so you could access the equivalent REST API through simple asynchronous functions with all the power provided by Melotic's direct API. This API uses simple method calls without all of the hassle of writing API request URLs, body and query strings.

Pull requests are welcomed!

API documentation

Instantiating a Client

var Melotic = require('melotic');
var melotic = new Melotic(options);

This generates a new API client. It accepts options arguments.

options:
  • accessKey string Optional. Your Melotic api access key for write operations, like submitting a bid.
  • secret string Optional. Your Melotic secret corresponding to your access key for signing write operations.

Melotic client

getMarkets

melotic.getMarkets(function(err, markets) {
  // ... utilize markets
});