ish_models 0.0.33.105 → 0.0.33.106
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ish/yahoo_stockwatcher.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f10773384bc286d4a8eb31fede271150e828e3c8e22c07aa07ad569a3b85f6f0
|
4
|
+
data.tar.gz: 79b28731cfa05022a699ff2f8711460959d2468e3a11a45f44e3553b97e13900
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eb75fb041a984126e4f809bb49ecebda6757cc73a920d210ed853701278dbb82c4f11d77cbc624e37b14be3b7225a26f030ad98c8fb3c39be4ee3b4c61f2892
|
7
|
+
data.tar.gz: 91d5a810d8f8912a2917fc086b05781e7a7757210087719c4560f3065b19ceb4adb9d5a7b0b5f8e32fee2bc05193a7e2b091f6b99f7cddaefba69202a23d7266
|
@@ -5,9 +5,9 @@ class ::YahooStockwatcher
|
|
5
5
|
def watch_once
|
6
6
|
|
7
7
|
stocks = Ish::StockWatch.where( :notification_type => :EMAIL )
|
8
|
-
puts! stocks.map(&:ticker), "Watching these stocks"
|
8
|
+
# puts! stocks.map(&:ticker), "Watching these stocks"
|
9
9
|
stocks.each do |stock|
|
10
|
-
puts! stock.ticker, 'ticker'
|
10
|
+
# puts! stock.ticker, 'ticker'
|
11
11
|
r = HTTParty.get "https://query1.finance.yahoo.com/v7/finance/chart/#{stock.ticker}?interval=1d&indicators=quote", timeout: 10
|
12
12
|
r = JSON.parse( r.body ).deep_symbolize_keys
|
13
13
|
r = r[:chart][:result][0][:meta][:regularMarketPrice]
|