nl-bxth
v1.0.9
Published
[![npm version](https://badge.fury.io/js/nl-bxth.svg)](https://badge.fury.io/js/nl-bxth)
Downloads
3
Readme
BX.in.th api
About
My own API Library for BX.in.th. Reference library here
Installing
npm i nl-bxth
Contributing
All contributions are welcome and appreciated. Open Source is a meritocracy who doesn't care who you are.
Issues Pull Requests Donations (BTC: 14qd36n1viYAWzajZgaTQq4tPUZcEUtfcz / LTC: LSGfxUoJSC3qYsTC6DwyvKvYfDwTVXrcE2
Examples
Get Currency Parings
i.public.pairing((cb) => {
console.log(cb.pairing);
});
Get Balance
The following returns a list of all the balances
i.private.balance({apikey: '', apisecret: '', endpoint: 'balance'}, function(cb) {
console.log(cb);
});
Transaction History
i.private.transactions({apikey: '', apisecret: ''}, function(cb) {
console.log(cb);
})
Orderbook
i.public.orderbook({pairing: '1'}, (cb) => {console.log(cb.orderbook);});
Create order
Create sell order 1 bitcoin for 1 million baht :D
i.private.customendpoint({apikey: '', apisecret: '', pairing: '1', type: 'sell', amount: '1.0', rate: '1000000'}, 'order', (cb) => {
console.log(cb);
});
Create buy order 1 bitcoin for 1 thousand baht :)
i.private.customendpoint({apikey: '', apisecret: '', pairing: '1', type: 'buy', amount: '1.0', rate: '1000'}, 'order', (cb) => {
console.log(cb);
});