Provides a Ruby module to access the CampBX API. For a full list of available API calls and their parameters, read the source, or see: https://campbx.com/api.php.
Each method returns a Hash with JSON data from the API. Requests are rate-limited to a maximum of once per 500ms.
require 'campbx.rb'
cbx = CampBX::API.new
# Optionally CampBX::API.new('user','pass')
# if you wish to use endpoints that require authenticationcbx.xticker
{"Last Trade"=>"117.70", "Best Bid"=>"117.54", "Best Ask"=>"117.70"}cbx.my_funds # Credentials provided upon initialization are included
{"Total USD"=>"100.00", "Total BTC"=>"2.501", "Liquid USD"=>"0.00", "Liquid BTC"=>"2.501", "Margin Account USD"=>"0.00", "Margin Account BTC"=>"0.00000000"}cbx.send_btc( 'bitcoinaddresshere', 43.30 )
###