1.0.0 • Published 6 years ago

palitanx-api v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

node-palitanx-api

Nodejs wrapper for palitanx.com

Build Status

NPM

API Implementation

const Palitanx = require('palitanx-api');
const palitanx = new Palitanx();

Methods:

getMarkets(callback)
getCurrencies(callback)
getTicker(market, callback) - example getTicker('BTC-CIV', function)
getMarketSummaries(callback)
getMarketSummary(market, callback) - example getMarketSummary('BTC-CIV', function)
getOrderBook(market, type, callback) - example getOrderBook('BTC-CIV', 'both', function...)
getMarketHistory(market, callback) - example getMarketSummary('BTC-CIV', function)

Examples:

const Palitanx = require('palitanx-api');
const palitanx = new Palitanx();

palitanx.getMarketSummary('BTC-CIV', function(err, data){
    console.log(err, data) //error should be false and you should get the data
})
 
palitanx.getTicker('BTC-CIV', function(err, data){
	if (!err) {
		console.log(data) // normal data
	}else{
		console.log(err, data) //problem with api err=true and data = ""
	};
})

Check examples folder for more

1.0.0

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago