A basic Node.js API wrapper for Bitexthai (bx.in.th) Bitcoin exchange REST API, supporting both public and private endpoints. Current version 0.1.0, requires Node >= 4. Provides simple callback-based methods for ticker, orderbook, trades, and private account operations like order creation, balance checks, and withdrawals. Not actively maintained; last release is dated, and the exchange API may have changed since.
npm install bitexthaiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes BitexthaiAPI with credentials and calls public ticker and private getBalances methods using callbacks.
Wrap methods with util.promisify or use a library like bluebird.
Pass key, secret, and twofa as separate string arguments. Use empty string if not needed.
Consider migrating to an alternative library that uses fetch or axios.
Always provide a callback function as the last argument.
Use require('bitexthai') to get the constructor, not import.Ensure you pass key, secret, and twofa to the constructor: new BitexthaiAPI(key, secret, twofa).
Always pass a callback as the last argument, e.g., bitexthai.ticker((err, data) => { ... }).