Module: Bitstamp::HTTP::OrderBook

Included in:
Client
Defined in:
lib/bitstamp/http/order_book.rb

Instance Method Summary collapse

Instance Method Details

#order_book(currency_pair: nil) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/bitstamp/http/order_book.rb', line 3

def order_book(currency_pair: nil)
  if currency_pair == nil
    return call(request_uri('order_book'), 'GET', nil)
  else
    return call(request_uri('v2', 'order_book', currency_pair), 'GET', nil)
  end
end