Module: CoingeckoRuby::Client::Indexes
- Included in:
- CoingeckoRuby::Client
- Defined in:
- lib/coingecko_ruby/client/indexes.rb
Instance Method Summary collapse
-
#get_indexes(options: {}) ⇒ Object
deprecated
Deprecated.
Use #indexes instead
-
#get_indexes_by_market_and_index(market_id:, index_id:, options: {}) ⇒ Object
deprecated
Deprecated.
Use #indexes_by_market_and_coin instead
-
#get_indexes_ids ⇒ Object
deprecated
Deprecated.
Use #index_ids instead
-
#index_ids ⇒ Array<Hash>
Fetches the ids of market indexes listed in CoinGecko.
-
#indexes(**options) ⇒ Array<Hash>
Fetches the list of market indexes listed in CoinGecko.
-
#indexes_by_market_and_coin(market_id, coin_id, **options) ⇒ Array<Hash>
Fetches the list of indexes based on the market and index given.
Instance Method Details
#get_indexes(options: {}) ⇒ Object
Deprecated.
Use #indexes instead
36 37 38 |
# File 'lib/coingecko_ruby/client/indexes.rb', line 36 def get_indexes(options: {}) indexes(**) end |
#get_indexes_by_market_and_index(market_id:, index_id:, options: {}) ⇒ Object
Deprecated.
Use #indexes_by_market_and_coin instead
83 84 85 |
# File 'lib/coingecko_ruby/client/indexes.rb', line 83 def get_indexes_by_market_and_index(market_id:, index_id:, options: {}) indexes_by_market_and_index(market_id, index_id, **) end |
#get_indexes_ids ⇒ Object
Deprecated.
Use #index_ids instead
58 59 60 |
# File 'lib/coingecko_ruby/client/indexes.rb', line 58 def get_indexes_ids index_ids end |
#index_ids ⇒ Array<Hash>
Fetches the ids of market indexes listed in CoinGecko.
53 54 55 |
# File 'lib/coingecko_ruby/client/indexes.rb', line 53 def index_ids get 'indexes/list' end |
#indexes(**options) ⇒ Array<Hash>
Fetches the list of market indexes listed in CoinGecko.
31 32 33 |
# File 'lib/coingecko_ruby/client/indexes.rb', line 31 def indexes(**) get 'indexes', ** end |
#indexes_by_market_and_coin(market_id, coin_id, **options) ⇒ Array<Hash>
Fetches the list of indexes based on the market and index given.
78 79 80 |
# File 'lib/coingecko_ruby/client/indexes.rb', line 78 def indexes_by_market_and_coin(market_id, coin_id, **) get "indexes/#{market_id}/#{coin_id}", ** end |