Skip to content

jshaw-cm/cryptopia-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cryptopia-client

The methods that are currently finished and working are:

Private:

GetBalance, GetOpenOrders, GetTradeHistory, SubmitTrade, CancelTrade (by orderId or all trades)

Public:

GetCurrencies, GetMarketOrders

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published