bitbank-node-api
v1.0.1
Published
Node API for BitBank.nz
Downloads
4
Maintainers
Readme
bitbank-node-js-api
Node API for https://BitBank.nz
See api docs at https://BitBank.nz/api
Example usage
npm install bitbank-node-js-api
var bitbank = require('bitbank-node-api')
var bitbankApi = bitbank.BitBank('TEST_API_KEY');
# fetch latest forecasts for a single pair
bitbankApi.fetchPair('USDT_BTC', function (featureset) {
console.log(featureset)
})
# fetch latest forecasts for all pairs
bitbankApi.fetchAllPairs(function (pairToFeaturesets) {
console.log(pairToFeaturesets)
})
# fetch historical forecasts ~4 hours of forecasts
bitbankApi.getHistoricalFeaturesets('USDT_BTC', function (featuresets) {
})
Testing
npm install
node node_modules/jasmine-node/bin/jasmine-node spec/
Development
Add tests in test-bitbank-spec
publish to npm with npm publish