Exemple #1
0
func (this vanguard) Fetch(output outputter.Outputter) {
	markup := this.call(this.url())

	price := this.makePrice(markup)

	output.Append(price)
}
Exemple #2
0
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))
}
Exemple #3
0
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)
}