mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
合并个股和指数
This commit is contained in:
18
client.go
18
client.go
@@ -501,21 +501,3 @@ func (this *Client) GetKlineYearAll(code string) (*protocol.KlineResp, error) {
|
||||
func (this *Client) GetKlineYearUntil(code string, f func(k *protocol.Kline) bool) (*protocol.KlineResp, error) {
|
||||
return this.GetKlineUntil(protocol.TypeKlineYear, code, f)
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
|
||||
*/
|
||||
|
||||
func (this *Client) GetIndex(Type uint8, code string, start, count uint16) (*protocol.IndexResp, error) {
|
||||
//f, err := protocol.MIndex.Frame(Type, code, start, count)
|
||||
//if err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
f := protocol.MIndex.Frame()
|
||||
result, err := this.SendFrame(f, Type)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result.(*protocol.IndexResp), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user