maxapi: fix fromID to uint64

This commit is contained in:
c9s 2022-04-21 13:18:00 +08:00
parent e754b68cdf
commit 93b10f20ac
2 changed files with 4 additions and 4 deletions

View File

@ -16,12 +16,12 @@ func (g *GetOrderHistoryRequest) Market(market string) *GetOrderHistoryRequest {
return g
}
func (g *GetOrderHistoryRequest) FromID(fromID int64) *GetOrderHistoryRequest {
func (g *GetOrderHistoryRequest) FromID(fromID uint64) *GetOrderHistoryRequest {
g.fromID = &fromID
return g
}
func (g *GetOrderHistoryRequest) Limit(limit int) *GetOrderHistoryRequest {
func (g *GetOrderHistoryRequest) Limit(limit uint) *GetOrderHistoryRequest {
g.limit = &limit
return g
}

View File

@ -148,8 +148,8 @@ type GetOrderHistoryRequest struct {
client requestgen.AuthenticatedAPIClient
market string `param:"market"`
fromID *int64 `param:"from_id"`
limit *int `param:"limit"`
fromID *uint64 `param:"from_id"`
limit *uint `param:"limit"`
}
func (s *OrderService) NewGetOrderHistoryRequest() *GetOrderHistoryRequest {