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
8 9 10 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 8 def currencies request :market, :get, :currencies end |
#market_trades(trading_pair_id) ⇒ Object Also known as: get_recent_trades
37 38 39 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 37 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
18 19 20 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 18 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
23 24 25 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 23 def precisions trading_pair_id request :market, :get, :precisions, trading_pair_id: trading_pair_id end |
#stats ⇒ Object
28 29 30 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 28 def stats request :market, :get, :stats end |
#tickers(trading_pair_id) ⇒ Object Also known as: get_ticker
32 33 34 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 32 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
13 14 15 |
# File 'lib/cobinhood/client/rest/market_api.rb', line 13 def trading_pairs request :market, :get, :trading_pairs end |