This project aims to provide some useful tools to fetch stock data for BIST via Yahoo Finance API
$ go get github.com/guneyin/gobist
bist, err := gobist.New()
if err != nil {
log.Fatal(err)
}
q, err := bist.GetQuote("TUPRS")
if err != nil {
log.Fatal(err)
}
func main() {
bist, err := gobist.New()
if err != nil {
log.Fatal(err)
}
q, err := bist.GetQuote("TUPRS")
if err != nil {
log.Fatal(err)
}
fmt.Println(fmt.Sprintf("symbol=%s name=%s price=%f", q.Symbol, q.Name, q.Price))
}