Bitliber api node librabry
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
package-lock.json
package.json

README.md

bitliber-api-client-node

Official Node.js bindings to Bitliber API

Installation

npm install git+https://github.com/bitliber/bitliber-api-client-node.git

Usage

Require Bitliber:

const Bitliber = require('bitliber-api-client-node');

Mind that every Bitliber method returns a native ES6 promise which have fewer features than Bluebird promises do. In particular, the .finally(...) method is not available.

Public API

{ Public:
    { 
        getPairs (),
        getAassets (),
        getMarkets (),
        getTicker (pair),
        getOrders (pair),
        getHistory (pair)
    } 
}

Example

Bitliber.Public.getAassets()
    .then((assets) => {
        // ... 
        console.log(assets);
    })
    .catch((error) => {
        // .. handle error
    });
[ 
    { currency: 'BTC', currencyLong: 'Bitcoin' },
    { currency: 'XMR', currencyLong: 'Monero' },
    { currency: 'AEON', currencyLong: 'Aeon' } 
]