解决v5api返回报错问题

This commit is contained in:
zhangkun 2024-12-03 21:07:41 +08:00
parent a3d7bd22a8
commit d22f0cb059
2 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,10 @@ func (rst *RestQueue) Save(cr *Core) {
link := "/api/v5/market/candles?instId=" + rst.InstId + "&bar=" + rst.Bar + limitSec + afterSec + beforeSec
fmt.Println("restLink: ", link)
rsp, _ := cr.v5PublicInvoke(link)
rsp, err := cr.v5PublicInvoke(link)
if err != nil {
fmt.Println("cr.v5PublicInvoke err:", err)
}
cr.SaveCandle(rst.InstId, rst.Bar, rsp, rst.Duration, rst.WithWs)
}

BIN
tunas

Binary file not shown.