0.0.12 • Published 10 years ago

campbx v0.0.12

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

node-campbx

An unofficial node.js client for the camp bx api including public market data api methods.

Installation

node-campbx is available as campbx on npm.

npm install campbx

Usage

var CampBX = require('campbx'),
    campBXTrade = new CampBX("YourUsername", "YourPassword"),
    // To use the testnet sandbox version of CampBX's api (https://testnet.campbx.com/)
    campBXTestNet = new CampBX("YourTestNetUsername", "YourTestNetPassword", { testnet: true }),
    // No need to provide keys if you're only using the public api methods.
    campBXPublic = new CampBX();

// Public API method call
// Note: Could use "campBXTrade" or "campBXTestNet" here as well.
campBX.ticker(function(err, data) {
  if(err) {
    throw err;
  }

  console.log(data);
});

// Trade API method call, use "campBXTestNet" here to use your testnet sandbox account instead.
campBX.myFunds(function(err, data) {
  if(err) {
    throw err;
  }

  console.log(data);
});

Reference

A method-by-method reference is available on the wiki.

License

This module is ISC licensed.

0.0.12

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.1

11 years ago