This is my Node.js Library for Poloniex
npm i nl-poloniex --save
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 / Dollars)
const poloniex = require('nl-poloniex');
// Depth : 10
poloniex.public({endpoint: "returnOrderBook", currencyPair: "BTC_ETC", depth: 10}, (cb) => console.log(cb));
// Depth default
poloniex.public({endpoint: "returnOrderBook", currencyPair: "BTC_ETC"}, (cb) => console.log(cb));
poloniex.public({endpoint: "return24hVolume"}, (cb) => console.log(cb));
poloniex.public({endpoint: "returnTicker"}, (cb) => console.log(cb));
poloniex.private({command: "returnBalances", 'key': '', 'secret': ''}, (cb) => console.log(cb));
poloniex.private({command: "returnAvailableAccountBalances", 'key': '', 'secret': ''}, (cb) => console.log(cb));
poloniex.private({command: "returnMarginAccountSummary", 'key': '', 'secret': ''}, (cb) => console.log(cb));