This commit is contained in:
injoy
2024-10-27 00:45:56 +08:00
parent 05e0bcd693
commit ec6e93d845
8 changed files with 98 additions and 41 deletions

21
example/testlist/main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"github.com/injoyai/logs"
"github.com/injoyai/tdx"
"github.com/injoyai/tdx/protocol"
)
func main() {
c, err := tdx.Dial("124.71.187.122:7709")
logs.PanicErr(err)
resp, err := c.GetSecurityList(protocol.ExchangeSH)
logs.PrintErr(err)
for _, v := range resp.List {
logs.Debugf("%#v\n", v)
}
select {}
}