Module: Bitopro::Public

Included in:
Client
Defined in:
lib/bitopro/api/public.rb

Defined Under Namespace

Classes: Error

Instance Method Summary collapse

Instance Method Details

#order_book(currency_pair) ⇒ Object

Raises:



5
6
7
8
9
# File 'lib/bitopro/api/public.rb', line 5

def order_book(currency_pair)
  raise Error, "currency_pair is required" unless currency_pair

  get("/order-book/#{currency_pair}")
end

#recent_trades(currency_pair) ⇒ Object

Raises:



17
18
19
20
21
# File 'lib/bitopro/api/public.rb', line 17

def recent_trades(currency_pair)
  raise Error, "currency_pair is required" unless currency_pair

  get("/trades/#{currency_pair}")
end

#tickers(currency_pair) ⇒ Object



11
12
13
14
15
# File 'lib/bitopro/api/public.rb', line 11

def tickers(currency_pair)
  currency_pair = nil unless currency_pair

  get("/tickers/#{currency_pair}")
end