Module: Cobinhood::Client::REST::MarketAPI
- Included in:
- Cobinhood::Client::REST
- Defined in:
- lib/cobinhood/client/rest/market_api.rb
Overview
Public: A Module containing all of the Public API endpoints
Instance Method Summary collapse
- #currencies ⇒ Object (also: #get_all_currencies)
- #market_trades(trading_pair_id) ⇒ Object (also: #get_recent_trades)
- #order_book(trading_pair_id) ⇒ Object (also: #get_order_book)
- #precisions(trading_pair_id) ⇒ Object (also: #get_order_book_precisions)
- #stats ⇒ Object
- #tickers(trading_pair_id) ⇒ Object (also: #get_ticker)
- #trading_pairs ⇒ Object (also: #get_all_trading_pairs)
Instance Method Details
#currencies ⇒ Object Also known as: get_all_currencies
7 8 9 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 7 def currencies request :market, :get, :currencies end |
#market_trades(trading_pair_id) ⇒ Object Also known as: get_recent_trades
36 37 38 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 36 def market_trades trading_pair_id request :market, :get, :trades, trading_pair_id: trading_pair_id end |
#order_book(trading_pair_id) ⇒ Object Also known as: get_order_book
17 18 19 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 17 def order_book trading_pair_id request :market, :get, :order_book, trading_pair_id: trading_pair_id end |
#precisions(trading_pair_id) ⇒ Object Also known as: get_order_book_precisions
22 23 24 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 22 def precisions trading_pair_id request :market, :get, :precisions, trading_pair_id: trading_pair_id end |
#stats ⇒ Object
27 28 29 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 27 def stats request :market, :get, :stats end |
#tickers(trading_pair_id) ⇒ Object Also known as: get_ticker
31 32 33 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 31 def tickers trading_pair_id request :market, :get, :tickers, trading_pair_id: trading_pair_id end |
#trading_pairs ⇒ Object Also known as: get_all_trading_pairs
12 13 14 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 12 def trading_pairs request :market, :get, :trading_pairs end |