Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

API Reference

Preston Skupinski edited this page · 3 revisions
Clone this wiki locally

Camp BX API reference

Public API

You do not need to specify your username and password in the constructor if you are only using these methods.


Calls the xdepth url endpoint.


Calls the xticker url endpoint.

Account and Trade API

If you are using these methods you must specify your username and password in the constructor.


Calls the myfunds url endpoint.


Calls the myorders url endpoint.


Calls the mymargins url endpoint.


Calls the getbtcaddr url endpoint.

campBX.sendBtc(btcTo, btcAmount, callback)

Calls the sendbtc url endpoint.

campBX.tradeCancel(type, orderId, callback)

Calls the tradecancel url endpoint.

type must be "Buy" or "Sell".

campBX.tradeEnter(tradeMode, quantity, price, callback)

Calls the tradeenter url endpoint.

tradeMode must be "QuickBuy" or "QuickSell".

campBX.tradeAdv(tradeMode, price, quantity, optionalFields, callback)

Calls the tradeadv url endpoint.

tradeMode must be "AdvancedBuy" or "AdvancedSell".

optionalFields is an object that can contain any optional parameters you wish to specify.

Something went wrong with that request. Please try again.