Aggregates different Bitcoin exchanges api's into a convenient JS wrapper.
Easily use all of the api's of every exchange in one single, simple to understand JavaScript module. Bitcoin exchanges api's are frequently updated, often missing documentation, and occasionally confusing. After writing lots of code to consume different api's, I realized the knowledge could/should be centralized into 1 module which addresses all of these pain-points. Thus, xchange.js was born.
- Works both on the Client or Server
- Can use either Callbacks or Promises (es6)
- Currently supports 6 different exchanges (with more to come)
- Bitfinex
- Bitstamp
- Coinbase
- BTC-e
- Kraken
- OkCoin
npm install xchange.js
//Example print the spot price of BTC/USD from bitfinex
import xchange from 'xchange.js';
xchange.bitfinex.ticker({symbol: 'BTCUSD'}, (err, response) => {
if (!err) {
console.log(response);
}
});
To help make xchange.js better please
- install Node & NPM
- clone the repo
- install dependencies
git clone https://github.com/jxm262/xchange.js.git
cd xchange.js
npm install
To keep with the latest news on xchange.js development feel free to participate in the mailing list
npm test
MIT
Please refer to the LICENSE file for details.
The end goal really is to wrap every api for all exchanges into this project. The current roadmap includes upgrading this to use authenticated api's, so users can perform actual transactions (buy, sell, etc..), and later to include more exchanges. The concept very much follows the motivation of the popular Java XChange library.