Skip to content

suwenyu/stockbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stockbook - TW Stock Crawler

codecov Build Status FOSSA Status

Stockbook is a stock crawler written in Go (Golang). It is fast, flexible, yet simple module for fetching data from Taiwan Stock Exchange(TWSE). Here express my greatest gratitude to gogrs.

Contents

Installation

To install Stockbook package, you need to install Go and set your Go workspace first.

  1. The first need Go installed (version 1.16+ is required), then you can use the below Go command to install Stockbook.
$ go get -u github.com/suwenyu/stockbook
  1. Import it in your code:
import "github.com/suwenyu/stockbook"

Quick start

func main() {
	data := stockbook.NewTWSE("2330", time.Now())
	data.RetrievePrevMonth(2)

	fmt.Println(data.FormatData())

}

License

FOSSA Status

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors