cryptopia-client

3.1.2 • Public • Published

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);
}

Readme

Keywords

none

Package Sidebar

Install

npm i cryptopia-client

Weekly Downloads

2

Version

3.1.2

License

ISC

Last publish

Collaborators

  • wahs