abitterblu commented on a Page, Stock Quote Script (Financial Stock Data) v2.4  -  Dec 06, 2014

You may have noticed that yahoo no longer allows DJI in the CSV because of some licensing stuff.

Would it be insanely difficult to grab all 30 of the DJI company's price fields and math out the average as a workaround?

Something like

;NON WORKING EXAMPLE

elseif ($2 == dji) {

;help!! insert code to grab 30 results here and return a total price of all 30
;list: MMM, AXP, T, BA, CAT, CVX, CSCO, KO, DD, XOM, GE, GS, HD, INTC, IBM, JNJ, JPM, MCD, MRK, MSFT, NKE, PFE, PG, TRV, UNH, UTX, VZ, V, WMT, DIS
var %indavg = total / 30 

.msgtype DJI is currently at %indavg
}

I'm not sure if you can grab all these in one CSV file, or if a separate sock process is needed for each. Any help Would be most appreciated. Great work on this!

illhawkthat  -  Dec 07, 2014

@abitterblu thanks for the heads up about this. I hadn't noticed ^DJI wasn't allowed for the CSV API. Hmm... does DIA work for you? It doesn't follow exactly, but it tracks pretty closely.

If you are looking for the exact points for the dow let me know and I can add up the prices from those 30 above.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.