NodeJS REST API Client Library for the Kraken market 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.
npm install node-kraken-rest-api
const key = '...' // API Key
const secret = '...' // API Private Key
const KrakenClient = require('node-kraken-rest-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' }))
})()