Class: CoinMarketCapitalization::Exchange
- Defined in:
- lib/coin_market_capitalization/exchange.rb
Overview
Exchange class - contains methods mapped to API endpoints for cryptocurrency exchanges. This category currently includes 6 endpoints
Constant Summary collapse
- BASE_URL =
"https://pro-api.coinmarketcap.com/v1/exchange"- END_POINT_ENTRIES =
%w[ map info listings/latest quotes/latest quotes/historical market-pairs/latest ].freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(api_key:, base_url: BASE_URL, adapter: Faraday.default_adapter) ⇒ Exchange
constructor
A new instance of Exchange.
Methods inherited from Base
Constructor Details
#initialize(api_key:, base_url: BASE_URL, adapter: Faraday.default_adapter) ⇒ Exchange
17 18 19 |
# File 'lib/coin_market_capitalization/exchange.rb', line 17 def initialize(api_key:, base_url: BASE_URL, adapter: Faraday.default_adapter) super end |