Module: CoingeckoRuby::Client::Derivatives
- Included in:
- CoingeckoRuby::Client
- Defined in:
- lib/coingecko_ruby/client/derivatives.rb
Instance Method Summary collapse
-
#derivative_exchange(id, **options) ⇒ Hash
Fetches data for a specific derivative exchange.
-
#derivative_exchanges(**options) ⇒ Array<Hash>
Fetches the list of derivative exchanges listed in CoinGecko.
-
#derivative_exchanges_ids_and_names ⇒ Array<Hash>
Fetches the list ids and names of derivative exchanges listed in CoinGecko.
-
#derivatives(**options) ⇒ Array<Hash>
Fetches the list of derivative products listed in CoinGecko.
-
#get_derivative_exchange(id:, options: {}) ⇒ Object
deprecated
Deprecated.
Use #derivative_exchange instead
-
#get_derivative_exchanges(options: {}) ⇒ Object
deprecated
Deprecated.
Use #derivative_exchanges instead
-
#get_derivative_exchanges_ids_and_names ⇒ Object
deprecated
Deprecated.
Use #derivative_exchanges_ids_and_names instead
-
#get_derivatives(options: {}) ⇒ Object
deprecated
Deprecated.
Use #derivatives instead
Instance Method Details
#derivative_exchange(id, **options) ⇒ Hash
Fetches data for a specific derivative exchange.
114 115 116 |
# File 'lib/coingecko_ruby/client/derivatives.rb', line 114 def derivative_exchange(id, **) get "derivatives/exchanges/#{id}", ** end |
#derivative_exchanges(**options) ⇒ Array<Hash>
Fetches the list of derivative exchanges listed in CoinGecko.
81 82 83 |
# File 'lib/coingecko_ruby/client/derivatives.rb', line 81 def derivative_exchanges(**) get 'derivatives/exchanges', ** end |
#derivative_exchanges_ids_and_names ⇒ Array<Hash>
Fetches the list ids and names of derivative exchanges listed in CoinGecko.
144 145 146 |
# File 'lib/coingecko_ruby/client/derivatives.rb', line 144 def derivative_exchanges_ids_and_names get 'derivatives/exchanges/list' end |
#derivatives(**options) ⇒ Array<Hash>
Fetches the list of derivative products listed in CoinGecko.
47 48 49 |
# File 'lib/coingecko_ruby/client/derivatives.rb', line 47 def derivatives(**) get 'derivatives', ** end |
#get_derivative_exchange(id:, options: {}) ⇒ Object
Use #derivative_exchange instead
119 120 121 |
# File 'lib/coingecko_ruby/client/derivatives.rb', line 119 def get_derivative_exchange(id:, options: {}) derivative_exchange(id, **) end |
#get_derivative_exchanges(options: {}) ⇒ Object
Use #derivative_exchanges instead
86 87 88 |
# File 'lib/coingecko_ruby/client/derivatives.rb', line 86 def get_derivative_exchanges(options: {}) derivative_exchanges(**) end |
#get_derivative_exchanges_ids_and_names ⇒ Object
Use #derivative_exchanges_ids_and_names instead
149 150 151 |
# File 'lib/coingecko_ruby/client/derivatives.rb', line 149 def get_derivative_exchanges_ids_and_names derivative_exchanges_ids_and_names end |
#get_derivatives(options: {}) ⇒ Object
Use #derivatives instead
52 53 54 |
# File 'lib/coingecko_ruby/client/derivatives.rb', line 52 def get_derivatives(options: {}) derivatives(**) end |