diff --git a/v2/deposit_service.go b/v2/deposit_service.go index 32055fdd..6b528e7a 100644 --- a/v2/deposit_service.go +++ b/v2/deposit_service.go @@ -64,7 +64,7 @@ func (s *ListDepositsService) TxID(id string) *ListDepositsService { } // Do sends the request. -func (s *ListDepositsService) Do(ctx context.Context) (res []*Deposit, err error) { +func (s *ListDepositsService) Do(ctx context.Context, opts ...RequestOption) (res []*Deposit, err error) { r := &request{ method: http.MethodGet, endpoint: "/sapi/v1/capital/deposit/hisrec", @@ -92,7 +92,7 @@ func (s *ListDepositsService) Do(ctx context.Context) (res []*Deposit, err error r.setParam("txId", *s.txId) } - data, err := s.c.callAPI(ctx, r) + data, err := s.c.callAPI(ctx, r, opts...) if err != nil { return } @@ -141,7 +141,7 @@ func (s *GetDepositsAddressService) Network(network string) *GetDepositsAddressS } // Do sends the request. -func (s *GetDepositsAddressService) Do(ctx context.Context) (*GetDepositAddressResponse, error) { +func (s *GetDepositsAddressService) Do(ctx context.Context, opts ...RequestOption) (*GetDepositAddressResponse, error) { r := &request{ method: http.MethodGet, endpoint: "/sapi/v1/capital/deposit/address", @@ -152,7 +152,7 @@ func (s *GetDepositsAddressService) Do(ctx context.Context) (*GetDepositAddressR r.setParam("network", *s.network) } - data, err := s.c.callAPI(ctx, r) + data, err := s.c.callAPI(ctx, r, opts...) if err != nil { return nil, err } diff --git a/v2/withdraw_service.go b/v2/withdraw_service.go index 3cc79053..f4b35b66 100644 --- a/v2/withdraw_service.go +++ b/v2/withdraw_service.go @@ -70,7 +70,7 @@ func (s *CreateWithdrawService) Name(v string) *CreateWithdrawService { } // Do sends the request. -func (s *CreateWithdrawService) Do(ctx context.Context) (*CreateWithdrawResponse, error) { +func (s *CreateWithdrawService) Do(ctx context.Context, opts ...RequestOption) (*CreateWithdrawResponse, error) { r := &request{ method: http.MethodPost, endpoint: "/sapi/v1/capital/withdraw/apply", @@ -95,7 +95,7 @@ func (s *CreateWithdrawService) Do(ctx context.Context) (*CreateWithdrawResponse r.setParam("name", *v) } - data, err := s.c.callAPI(ctx, r) + data, err := s.c.callAPI(ctx, r, opts...) if err != nil { return nil, err } @@ -172,7 +172,7 @@ func (s *ListWithdrawsService) Limit(limit int) *ListWithdrawsService { } // Do sends the request. -func (s *ListWithdrawsService) Do(ctx context.Context) (res []*Withdraw, err error) { +func (s *ListWithdrawsService) Do(ctx context.Context, opts ...RequestOption) (res []*Withdraw, err error) { r := &request{ method: http.MethodGet, endpoint: "/sapi/v1/capital/withdraw/history", @@ -199,7 +199,7 @@ func (s *ListWithdrawsService) Do(ctx context.Context) (res []*Withdraw, err err if s.limit != nil { r.setParam("limit", *s.limit) } - data, err := s.c.callAPI(ctx, r) + data, err := s.c.callAPI(ctx, r, opts...) if err != nil { return }