1.0.0 • Published 6 years ago
palitanx-api v1.0.0
node-palitanx-api
Nodejs wrapper for palitanx.com
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