Class: BitcointradeSDK::Public

Inherits:
Base
  • Object
show all
Defined in:
lib/bitcointrade_sdk/public.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL

Instance Method Summary collapse

Methods inherited from Base

#send_request

Instance Method Details

#ordersObject



9
10
11
# File 'lib/bitcointrade_sdk/public.rb', line 9

def orders
  send_request(:get, "/public/BTC/orders", {}, true )
end

#tickerObject



5
6
7
# File 'lib/bitcointrade_sdk/public.rb', line 5

def ticker
  send_request(:get, "/public/BTC/ticker", {}, true)['data']
end

#trades(opts = {}) ⇒ Object



13
14
15
# File 'lib/bitcointrade_sdk/public.rb', line 13

def trades(opts = {})
  send_request(:get, "/public/BTC/trades", opts, true)['data']
end