Fugle Realtime Go is a go package to query realtime stock data of Taiwan market through API provided by Fugle API
$ go get github.com/RainrainWu/fugle-realtime-go
$ export FUGLE_API_TOKEN=<YOUR_TOKEN>
package main
import (
"log"
"github.com/RainrainWu/fugle-realtime-go/client"
)
func main() {
myClient, err := client.NewFugleClient()
if err != nil {
log.Fatal("failed to init fugle api client")
}
result := myClient.Meta("2330", false)
result.PrettyPrint()
}
Access the Chart API
Access the Quote API
Access the Meta API
Access the Dealts API