Skip to content

Commit

Permalink
feat(): fix getOrders client
Browse files Browse the repository at this point in the history
  • Loading branch information
zyjblockchain committed Nov 22, 2022
1 parent d270c99 commit 2a45206
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/everFinance/goar"
"github.com/everFinance/goar/types"
"gopkg.in/h2non/gentleman.v2"
"strconv"
)

type ArSeedCli struct {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2a45206

Please sign in to comment.