Module: CampBX
- Defined in:
- lib/rbtc_arbitrage/campbx.rb
Defined Under Namespace
Classes: API
Constant Summary collapse
- API_BASE =
'https://campbx.com/api/'
- CALLS =
{ method_name => [ url, auth?, [ parameters ] ] } See: campbx.com/api.php for specifics. Each method returns a Hash with JSON data from the API. Some parameters are optional.
{ 'xdepth' => [ 'xdepth', FALSE, [] ], 'xticker' => [ 'xticker', FALSE, [] ], 'my_funds' => ['myfunds', TRUE, [] ], 'my_orders' => ['myorders', TRUE, [] ], 'my_margins' => ['mymargins', TRUE, [] ], 'send_instant' => ['sendinstant', TRUE, [ 'CBXCode', 'BTCAmt' ] ], 'get_btc_address' => ['getbtcaddr', TRUE, [] ], 'send_btc' => ['sendbtc', TRUE, [ 'BTCTo', 'BTCAmt' ] ], # 'dwolla' => [ nil, TRUE, [] ], # Coming Soon (TM) 'trade_cancel' => ['tradecancel', TRUE, [ 'Type', 'OrderID' ] ], 'trade_enter' => ['tradeenter', TRUE, [ 'TradeMode', 'Quantity', 'Price' ] ], 'trade_advanced' => ['tradeadv', TRUE, [ 'TradeMode', 'Price', 'Quantity', 'FillType', 'DarkPool', 'Expiry' ] ], # 'margin_buy' => [ nil, TRUE, [] ], # Coming Soon (TM) # 'short_sell' => [ nil, TRUE, [] ], # Coming Soon (TM) }