Node Kraken
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 Keyconst secret = '...'; // API Private Keyconst KrakenClient = ;const kraken = key secret; async { // Display user's balance console; // Get Ticker Info console;};
Updates:
As of version 1.0.0:
- All methods return a promise.
- The second argument (parameters) can be omitted.
- The third argument to the constructor can be an object (configuration) or a string (OTP), for backwards compatibility.
As of version 0.1.0, the callback passed to the api
function conforms to the Node.js standard of
{ // ...}
Thanks to @tehsenaus and @petermrg for pointing this out.
Credit:
I used the example php implementation at https://github.com/payward/kraken-api-client and the python implementation at https://github.com/veox/python3-krakenex as references.
BTC donation address: 12X8GyUpfYxEP7sh1QaU4ngWYpzXJByQn5