Class: Alphavantage::Crypto
- Inherits:
-
Object
- Object
- Alphavantage::Crypto
- Includes:
- Validations
- Defined in:
- lib/alphavantage/crypto.rb
Constant Summary collapse
- FUNCTIONS =
{ health_index: 'CRYPTO_RATING', intraday: 'CRYPTO_INTRADAY', daily: 'DIGITAL_CURRENCY_DAILY', weekly: 'DIGITAL_CURRENCY_WEEKLY', monthly: 'DIGITAL_CURRENCY_MONTHLY' }
Constants included from Validations
Validations::VALID_DATATYPES, Validations::VALID_INDICATOR_INTERVALS, Validations::VALID_INTERVALS, Validations::VALID_OUTPUTSIZES, Validations::VALID_SERIES_TYPES, Validations::VALID_SLICES
Class Method Summary collapse
Instance Method Summary collapse
- #daily ⇒ Object (also: #weekly, #monthly)
-
#initialize(symbol:, market:) ⇒ Crypto
constructor
A new instance of Crypto.
- #intraday(interval: '5min') ⇒ Object
Constructor Details
#initialize(symbol:, market:) ⇒ Crypto
Returns a new instance of Crypto.
20 21 22 23 |
# File 'lib/alphavantage/crypto.rb', line 20 def initialize(symbol:,market:) @symbol = symbol @market = market end |