Node.js client for the Kraken bitcoin exchange API.
Add to your application via npm
:
npm install @bleskomat/kraken-api-client
Public API end-points:
const KrakenApiClient = require('@bleskomat/kraken-api-client');
const kraken = new KrakenApiClient();
kraken.api('Ticker', { pair: 'XXBTZEUR' }).then(result => {
console.log(JSON.stringify(result, null, 2));
}).catch(error => console.error(error));
Private API end-points require API key and private key:
const KrakenApiClient = require('@bleskomat/kraken-api-client');
const kraken = new KrakenApiClient({
apiKey: 'API_KEY',
privateKey: 'PRIVATE_KEY',
});
kraken.api('Balance').then(result => {
console.log(JSON.stringify(result, null, 2));
}).catch(error => console.error(error));
Run automated tests as follows:
npm test
See CHANGELOG.md
This software is MIT licensed:
A short, permissive software license. Basically, you can do whatever you want as long as you include the original copyright and license notice in any copy of the software/source. There are many variations of this license in use.