Node API for https://BitBank.nz
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules
spec
README.md
bitbank.js
package.json

README.md

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