Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 

README.md

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

About

bx.in.th API Library

Topics

Resources

Packages

No packages published