Class: CaVirtex::API::Public

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

Constant Summary

Constants inherited from Base

Base::CURRENCIES_KEYS

Instance Method Summary collapse

Constructor Details

#initializePublic

Returns a new instance of Public.



4
5
# File 'lib/ca_virtex/api/public.rb', line 4

def initialize
end

Instance Method Details

#orderbook(params = {}) ⇒ Object



7
8
9
10
11
# File 'lib/ca_virtex/api/public.rb', line 7

def orderbook(params = {})
  params.slice!(:order_currency, :payment_currency, :count)
  response = parse_message(orderbook_call(params).body)
  parse_orders(response, params[:count])
end