GetBalance, GetOpenOrders, GetTradeHistory, SubmitTrade, CancelTrade (by orderId or all trades)
GetCurrencies, GetMarketOrders
$ npm install --save cryptopia-client
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);
}