1.0.1 • Published 6 years ago

node-oknet-api v1.0.1

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
6 years ago

Node OKNET API

Node OKNET API is an asynchronous node.js library for the OKNET API - https://ok.net/

Before you start

  • You are playing with real money, so double check before running it.
  • Check api permissions before giving api "key and secret" information to someone.

Quick start

$ npm install node-oknet-api
const oknet = require('node-oknet-api');
oknet.options({
  'key'      : API_KEY,
  'secret'   : API_SECRET,
});

oknet.getOrders('BTC-ETH', function(error, result) {
    if(error) {
        return console.log(error);
    }
    
    console.log(result.data.buylist, result.data.selllist);
});