class Alphavantage::Crypto
Constants
- FUNCTIONS
Public Class Methods
health_index(symbol:)
click to toggle source
# File lib/alphavantage/crypto.rb, line 13 def self.health_index(symbol:) Client.get(params: { function: self::FUNCTIONS[__method__], symbol: symbol }).crypto_rating_fcas end
new(symbol:,market:)
click to toggle source
# File lib/alphavantage/crypto.rb, line 20 def initialize(symbol:,market:) @symbol = symbol @market = market end
Public Instance Methods
daily()
click to toggle source
# File lib/alphavantage/crypto.rb, line 34 def daily Client.get(params: { function: FUNCTIONS[__callee__], symbol: @symbol, market: @market }) end
intraday(interval: '5min')
click to toggle source
# File lib/alphavantage/crypto.rb, line 25 def intraday(interval: '5min') Client.get(params: { function: FUNCTIONS[__method__], symbol: @symbol, market: @market, interval: validate_interval(interval) }) end