MCPcopy Create free account
hub / github.com/bensema/gotdx / GetBlockFile

Method GetBlockFile

client_extras.go:83–89  ·  view source on GitHub ↗

GetBlockFile 获取完整板块文件

(filename string)

Source from the content-addressed store, hash-verified

81
82// GetBlockFile 获取完整板块文件
83func (client *Client) GetBlockFile(filename string) ([]byte, error) {
84 meta, err := client.GetFileMeta(filename)
85 if err != nil {
86 return nil, err
87 }
88 return client.DownloadFullFile(filename, meta.Size)
89}
90
91// GetTableFile 获取以竖线分隔的表格文件
92func (client *Client) GetTableFile(filename string) ([][]string, error) {

Callers 2

GetParsedBlockFileMethod · 0.95
GetGroupedBlockFileMethod · 0.95

Calls 2

GetFileMetaMethod · 0.95
DownloadFullFileMethod · 0.95

Tested by

no test coverage detected