app/models/tda/stock.rb in iron_warbler-2.0.7.18 vs app/models/tda/stock.rb in iron_warbler-2.0.7.19

- old
+ new

@@ -14,9 +14,12 @@ ## tickers = "NVDA,GME" def self.get_quotes tickers path = "/v1/marketdata/quotes" inns = self.get path, { query: { apikey: ::TD_AMERITRADE[:apiKey], symbol: tickers } } inns = inns.parsed_response + if [ NilClass, String ].include?( inns.class ) + return [] + end inns.each do |k, v| inns[k] = v.deep_symbolize_keys end outs = [] inns.each do |symbol, obj| \ No newline at end of file