Class: Eodhd::Intraday

Inherits:
Object
  • Object
show all
Defined in:
lib/Eodhd/Intraday.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#closeObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def close
  @close
end

#datetimeObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def datetime
  @datetime
end

#exchange_codeObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def exchange_code
  @exchange_code
end

#gmtoffsetObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def gmtoffset
  @gmtoffset
end

#highObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def high
  @high
end

#intervalObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def interval
  @interval
end

#lowObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def low
  @low
end

#openObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def open
  @open
end

#symbolObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def symbol
  @symbol
end

#timestampObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def timestamp
  @timestamp
end

#volumeObject (readonly)

class << self



47
48
49
# File 'lib/Eodhd/Intraday.rb', line 47

def volume
  @volume
end

Class Method Details

.all(client: nil, api_token: nil, exchange_code: 'US', symbol:, interval:, from: nil, to: nil) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/Eodhd/Intraday.rb', line 7

def all(client: nil, api_token: nil, exchange_code: 'US', symbol:, interval:, from: nil, to: nil)
  load(
    client: client,
    api_token: api_token,
    exchange_code: exchange_code,
    symbol: symbol,
    interval: interval,
    from: from,
    to: to
  )
end