twstock-go

所属分类:collect
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-07-30 09:15:31
上 传 者sh-1993
说明:  Go library 從證券交易所及證券櫃台買賣中心抓取有價證卷資料
(Go library grabs valuable securities from stock exchanges and over-the-counter securities trading centers)

文件列表:
.golangci.yml (513, 2023-12-24)
LICENSE (1486, 2023-12-24)
go.mod (405, 2023-12-24)
go.sum (5557, 2023-12-24)
scripts/ (0, 2023-12-24)
scripts/generate_securities.go (1252, 2023-12-24)
test/ (0, 2023-12-24)
test/integration/ (0, 2023-12-24)
test/integration/marketdata_test.go (498, 2023-12-24)
test/integration/quote_test.go (824, 2023-12-24)
test/integration/security_test.go (507, 2023-12-24)
twstock/ (0, 2023-12-24)
twstock/marketdata.go (4906, 2023-12-24)
twstock/marketdata_test.go (12752, 2023-12-24)
twstock/quote.go (12800, 2023-12-24)
twstock/quote_test.go (26290, 2023-12-24)
twstock/securities_GENERATED.go (6948188, 2023-12-24)
twstock/security.go (5465, 2023-12-24)
twstock/security_test.go (56738, 2023-12-24)
twstock/twstock.go (3984, 2023-12-24)
twstock/twstock_test.go (3908, 2023-12-24)

# twstock-go [![GoDoc](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/miles170/twstock-go/twstock) [![Test Status](https://github.com/miles170/twstock-go/workflows/tests/badge.svg)](https://github.com/miles170/twstock-go/actions?query=workflow%3Atests) [![Test Coverage](https://codecov.io/gh/miles170/twstock-go/branch/main/graph/badge.svg)](https://codecov.io/gh/miles170/twstock-go) [![Go Report Card](https://goreportcard.com/badge/github.com/miles170/twstock-go)](https://goreportcard.com/report/github.com/miles170/twstock-go) [![Code Climate](https://codeclimate.com/github/miles170/twstock-go/badges/gpa.svg)](https://codeclimate.com/github/miles170/twstock-go) 從[證券交易所 (TWSE)](https://www.twse.com.tw/zh/) 及[證券櫃台買賣中心 (TPEX)](https://www.tpex.org.tw/web/) 抓取有價證卷資料 ## Installation twstock-go is compatible with modern Go releases in module mode, with Go installed: ```bash go get github.com/miles170/twstock-go/twstock ``` ## Usage ```go import "github.com/miles170/twstock-go/twstock" client := twstock.NewClient() ``` ### 從台灣證卷交易所下載上市及上櫃國際證券資料 ```go securities, err := client.Security.Download() ``` ### 從台灣證卷交易所下載下市的國際證券資料 ```go securities, err := client.Security.DownloadTwseDelisted() ``` ### 從證券櫃檯買賣中心下載下櫃的國際證券資料 > [櫃買中心查詢下櫃證卷資料](https://www.tpex.org.tw/web/regular_emerging/deListed/de-listed_companies.php?l=zh-tw)需要指定頁數 ```go securities, err := client.Security.DownloadTpexDelisted(0) ``` ### 從台灣證卷交易所或證券櫃檯買賣中心下載盤後個股日成交資訊 ```go quotes, err := client.Quote.DownloadTwse("2330", 2022, 8) ``` ### 從台灣證卷交易所下載即時個股成交資訊 ```go quotes, err := client.Quote.Realtime("2330", "3374") ``` ### 從台灣證卷交易所下載盤後每日市場成交資訊 ```go marketData, err := client.MarketData.DownloadTwse(2022, 8) ``` ### 從證券櫃檯買賣中心下載盤後每日市場成交資訊 ```go marketData, err := client.MarketData.DownloadTpex(2022, 8) ``` ## License [BSD-3-Clause](LICENSE)

近期下载者

相关文件


收藏者