nl-bxth

1.0.9 • Public • Published

BX.in.th api

npm version

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

Readme

Keywords

none

Package Sidebar

Install

npm i nl-bxth

Weekly Downloads

1

Version

1.0.9

License

ISC

Unpacked Size

9.56 kB

Total Files

6

Last publish

Collaborators

  • nolim1t