Module: Cryptopia::Api::Public
- Included in:
- Base
- Defined in:
- lib/cryptopia/api/public.rb
Instance Method Summary collapse
- #currencies ⇒ Object
- #market(market, options = {}) ⇒ Object
- #market_history(market, options = {}) ⇒ Object
- #market_order_groups(markets = [], options = {}) ⇒ Object
- #market_orders(market, options = {}) ⇒ Object
- #markets(options = {}) ⇒ Object
- #trade_pairs ⇒ Object
Instance Method Details
#currencies ⇒ Object
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, = {}) handle_response(Market.new(self.class.base_uri).find(market, )) end |
#market_history(market, options = {}) ⇒ Object
20 21 22 |
# File 'lib/cryptopia/api/public.rb', line 20 def market_history(market, = {}) handle_response(Market.new(self.class.base_uri).history(market, )) end |
#market_order_groups(markets = [], options = {}) ⇒ Object
28 29 30 |
# File 'lib/cryptopia/api/public.rb', line 28 def market_order_groups(markets = [], = {}) handle_response(Market.new(self.class.base_uri).order_groups(markets, )) end |
#market_orders(market, options = {}) ⇒ Object
24 25 26 |
# File 'lib/cryptopia/api/public.rb', line 24 def market_orders(market, = {}) handle_response(Market.new(self.class.base_uri).orders(market, )) end |
#markets(options = {}) ⇒ Object
12 13 14 |
# File 'lib/cryptopia/api/public.rb', line 12 def markets( = {}) handle_response(Market.new(self.class.base_uri).all()) end |
#trade_pairs ⇒ Object
8 9 10 |
# File 'lib/cryptopia/api/public.rb', line 8 def trade_pairs handle_response(self.class.get('/GetTradePairs')) end |