Module: NOWPayments::API::Currencies
- Included in:
- Client
- Defined in:
- lib/nowpayments/api/currencies.rb
Overview
Currency-related endpoints
Instance Method Summary collapse
-
#currencies(fixed_rate: nil) ⇒ Hash
Get list of available currencies GET /v1/currencies.
-
#full_currencies ⇒ Hash
Get list of available currencies with full info GET /v1/full-currencies.
-
#merchant_coins ⇒ Hash
Get list of available currencies checked by merchant GET /v1/merchant/coins.
Instance Method Details
#currencies(fixed_rate: nil) ⇒ Hash
Get list of available currencies GET /v1/currencies
11 12 13 14 15 |
# File 'lib/nowpayments/api/currencies.rb', line 11 def currencies(fixed_rate: nil) params = {} params[:fixed_rate] = fixed_rate unless fixed_rate.nil? get("currencies", params: params).body end |
#full_currencies ⇒ Hash
Get list of available currencies with full info GET /v1/full-currencies
20 21 22 |
# File 'lib/nowpayments/api/currencies.rb', line 20 def full_currencies get("full-currencies").body end |
#merchant_coins ⇒ Hash
Get list of available currencies checked by merchant GET /v1/merchant/coins
27 28 29 |
# File 'lib/nowpayments/api/currencies.rb', line 27 def merchant_coins get("merchant/coins").body end |