Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-kraken-rest-api

gorgev11MIT1.0.2

kraken.com REST API client for NodeJS

kraken, api, btc, bitcoin, cryptotrading

readme

Node Kraken

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.

Installation

npm install node-kraken-rest-api

Example Usage:

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' }))
})()