1.0.2 • Published 7 years ago

kraken-node-api v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Kraken Api Nodejs Client

npm version

ssss package is forked from https://github.com/nothingisdead/npm-kraken-api I'll keep the package updated.

Changes

  • Build directory added.
  • Node 6 support

Original Readme Content

NodeJS Client Library for the Kraken (kraken.com) API

This is an asynchronous node js client for the kraken.com API. It exposes all the API methods found here: https://www.kraken.com/help/api through the api method:

Example Usage:

const key          = '...'; // API Key
const secret       = '...'; // API Private Key
const KrakenClient = require('kraken-node-api');
const kraken       = new KrakenClient(key, secret);

(async () => {
	// Display user's balance
	console.log(await kraken.api('Balance'));

	// Get Ticker Info
	console.log(await kraken.api('Ticker', { pair : 'XXBTZUSD' }));
})();