From 2a4520656bee8d373ab5e89f27cddfcc40bd26aa Mon Sep 17 00:00:00 2001 From: sandy <18382255942@163.com> Date: Tue, 22 Nov 2022 11:26:10 +0800 Subject: [PATCH] feat(): fix getOrders client --- sdk/client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/client.go b/sdk/client.go index e32e5f2..8ff14e5 100644 --- a/sdk/client.go +++ b/sdk/client.go @@ -8,6 +8,7 @@ import ( "github.com/everFinance/goar" "github.com/everFinance/goar/types" "gopkg.in/h2non/gentleman.v2" + "strconv" ) type ArSeedCli struct { @@ -236,10 +237,10 @@ func (a *ArSeedCli) BundleFee(size int64, currency string) (schema.RespFee, erro return fee, err } -func (a *ArSeedCli) GetOrders(addr string) ([]schema.Order, error) { +func (a *ArSeedCli) GetOrders(addr string, startId int) ([]schema.Order, error) { req := a.SCli.Get() req.Path(fmt.Sprintf("/bundle/orders/%s", addr)) - + req.AddQuery("cursorId", strconv.Itoa(startId)) resp, err := req.Send() if err != nil { return nil, err