From 93b10f20ac7e537ac7895858f475ec8ad68baa60 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 21 Apr 2022 13:18:00 +0800 Subject: [PATCH] maxapi: fix fromID to uint64 --- .../max/maxapi/get_order_history_request_requestgen.go | 4 ++-- pkg/exchange/max/maxapi/order.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/exchange/max/maxapi/get_order_history_request_requestgen.go b/pkg/exchange/max/maxapi/get_order_history_request_requestgen.go index ddaa0873b..51ef9e0bb 100644 --- a/pkg/exchange/max/maxapi/get_order_history_request_requestgen.go +++ b/pkg/exchange/max/maxapi/get_order_history_request_requestgen.go @@ -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 } diff --git a/pkg/exchange/max/maxapi/order.go b/pkg/exchange/max/maxapi/order.go index c953b1831..a412ce7c7 100644 --- a/pkg/exchange/max/maxapi/order.go +++ b/pkg/exchange/max/maxapi/order.go @@ -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 {