Skip to content

guneyin/gobist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobist - GO library for BIST (Borsa Istanbul)

This project aims to provide some useful tools to fetch stock data for BIST via Yahoo Finance API

Installation

$ go get github.com/guneyin/gobist

Usage and Example

Create Client

bist, err := gobist.New()
if err != nil {
    log.Fatal(err)
}

Get Quote

q, err := bist.GetQuote("TUPRS")
if err != nil {
    log.Fatal(err)
}

Example

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))
}

Releases

No releases published

Packages