1.0.2 • Published 1 year ago
node-kraken-rest-api v1.0.2
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' }))
})()