Class: MoexIss::Market::History::Stock

Inherits:
Object
  • Object
show all
Defined in:
lib/moex_iss/market/history/stock.rb

Constant Summary collapse

METHODS =
{
  "TRADEDATE" => :trade_date, "SHORTNAME" => :short_name, "SECID" => :secid, "VALUE" => :value,
  "OPEN" => :open, "LOW" => :low, "HIGH" => :high, "LEGALCLOSEPRICE" => :legal_close_price,
  "VOLUME" => :volume
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Stock

Returns a new instance of Stock.



15
16
17
18
19
# File 'lib/moex_iss/market/history/stock.rb', line 15

def initialize(response)
  @response = response

  setup_instance_varibales(@response["history"])
end