Skip to content

RainrainWu/fugle-realtime-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fugle-realtime-go

Build Status Go Report Card codecov Code Climate

Fugle Realtime Go is a go package to query realtime stock data of Taiwan market through API provided by Fugle API

Getting Started

Install the package

$ go get github.com/RainrainWu/fugle-realtime-go

Set up your Fugle API token

$ export FUGLE_API_TOKEN=<YOUR_TOKEN>

Quick demo

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

Functions

func (client.FugleClient).Chart(symbolID string, oddLot bool) client.FugleAPIResponse

Access the Chart API

func (client.FugleClient).Quote(symbolID string, oddLot bool) client.FugleAPIResponse

Access the Quote API

func (client.FugleClient).Meta(symbolID string, oddLot bool) client.FugleAPIResponse

Access the Meta API

func (client.FugleClient).Dealts(symbolID string, oddLot bool) client.FugleAPIResponse

Access the Dealts API

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages