Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Latest commit

 

History

History
54 lines (40 loc) · 1.97 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.97 KB

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