Module: Cryptopia::Api::Public

Included in:
Base
Defined in:
lib/cryptopia/api/public.rb

Instance Method Summary collapse

Instance Method Details

#currenciesObject



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

def currencies
  handle_response(self.class.get('/GetCurrencies'))
end

#market(market, options = {}) ⇒ Object



16
17
18
# File 'lib/cryptopia/api/public.rb', line 16

def market(market, options = {})
  handle_response(Market.new(self.class.base_uri).find(market, options))
end

#market_history(market, options = {}) ⇒ Object



20
21
22
# File 'lib/cryptopia/api/public.rb', line 20

def market_history(market, options = {})
  handle_response(Market.new(self.class.base_uri).history(market, options))
end

#market_order_groups(markets = [], options = {}) ⇒ Object



28
29
30
# File 'lib/cryptopia/api/public.rb', line 28

def market_order_groups(markets = [], options = {})
  handle_response(Market.new(self.class.base_uri).order_groups(markets, options))
end

#market_orders(market, options = {}) ⇒ Object



24
25
26
# File 'lib/cryptopia/api/public.rb', line 24

def market_orders(market, options = {})
  handle_response(Market.new(self.class.base_uri).orders(market, options))
end

#markets(options = {}) ⇒ Object



12
13
14
# File 'lib/cryptopia/api/public.rb', line 12

def markets(options = {})
  handle_response(Market.new(self.class.base_uri).all(options))
end

#trade_pairsObject



8
9
10
# File 'lib/cryptopia/api/public.rb', line 8

def trade_pairs
  handle_response(self.class.get('/GetTradePairs'))
end