cryptopia-client
v3.1.2
Published
Client for using public and private api methods to access data from cryptopia.com
Downloads
8
Readme
cryptopia-client
The only methods that are currently finished and working are:
Private:
GetBalance
Public:
GetCurrencies
I have not tested sending params, so you should not expect anything to work if you send params..
Installation
$ npm install --save cryptopia-client
Usage
var CryptopiaClient = require("cryptopia-client");
(These keys can be created at https://www.cryptopia.co.nz/Security when you are logged into your cryptopia account...)
var keys = {
api_key: "get your own damn api key",
secret_key: "get your own damn secret key"
}
var client = new CryptopiaClient(keys);
client.GetBalance(callback);
function callback(error, data) {
if(error) console.log("E!",error)
console.log("Data: ", data);
}
or
client.GetCurrencies(callback);
function callback(error, data) {
if(error) console.log("Error", error)
console.log("Data: ", data);
}