func (this vanguard) Fetch(output outputter.Outputter) { markup := this.call(this.url()) price := this.makePrice(markup) output.Append(price) }
func (this quandl) Fetch(output outputter.Outputter) { url := this.url() // http://finance.yahoo.com/d/quotes.csv?s=RKN.AX&f=snd1t1l1 json := this.call(url) data := this.parseJson(json) output.Append(this.makePrice(data)) }
func (this yahoo) Fetch(output outputter.Outputter) { url := this.url() // http://finance.yahoo.com/d/quotes.csv?s=RKN.AX&f=snd1t1l1 csv := this.call(url) // "RKN.AX","RECKON FPO","8/6/2015","12:19pm",2.03 price := this.makePrice(csv) output.Append(price) }