Kiwi-Coin.com API client for Node.js.
The package is available on NPM as kiwicoin
.
npm install kiwicoin
The API has 2 groups of services (or functions):
- Public: does not require authentication;
- Private: requires authentication (based on your User ID, API key and secret)
Using the private services from Kiwi-Coin API (they require authentication):
// Usage example for the Balance service:
// --------------------------------------
var Kiwicoin = require('kiwicoin');
var kiwiClient = new Kiwicoin("YourUserId", "YourApiKey", "YourSecret");
kiwiClient.balance(function(err, info) {
console.log(err, info);
});
If you just want to use the public services you don't need to provide the credentials (UserId, API Key and secret).
The public services are:
- Ticker (
ticker
) - Order book (
order_book
)
// Usage example for the Ticker service:
// -------------------------------------
var Kiwicoin = require('kiwicoin');
var kiwiClient = new Kiwicoin();
kiwiClient.ticker(function(err, info) {
console.log(err, info);
});