mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
21 lines
324 B
Go
21 lines
324 B
Go
package main
|
|
|
|
import (
|
|
"github.com/injoyai/logs"
|
|
"github.com/injoyai/tdx/extend"
|
|
"time"
|
|
)
|
|
|
|
func main() {
|
|
go extend.ListenCodesHTTP(10033)
|
|
|
|
<-time.After(time.Second * 3)
|
|
c := extend.DialCodesHTTP("http://localhost:10033")
|
|
stocks, err := c.GetStocks()
|
|
logs.PanicErr(err)
|
|
|
|
for _, v := range stocks {
|
|
println(v)
|
|
}
|
|
}
|