maxapi: move NewGetMarginLoanHistoryRequest method to the bottom of the file

This commit is contained in:
c9s 2023-05-15 16:29:49 +08:00
parent df842a04ee
commit 0bb697bc1e
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -13,10 +13,6 @@ import (
"github.com/c9s/bbgo/pkg/types"
)
func (s *Client) NewGetMarginLoanHistoryRequest() *GetMarginLoanHistoryRequest {
return &GetMarginLoanHistoryRequest{client: s.Client}
}
type LoanRecord struct {
SN string `json:"sn"`
Currency string `json:"currency"`
@ -36,3 +32,7 @@ type GetMarginLoanHistoryRequest struct {
endTime *time.Time `param:"endTime,milliseconds"`
limit *int `param:"limit"`
}
func (s *Client) NewGetMarginLoanHistoryRequest() *GetMarginLoanHistoryRequest {
return &GetMarginLoanHistoryRequest{client: s.Client}
}