Skip to content

Commit

Permalink
Feature/Upgrade_sapi_v2_loan_endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Haiss2 committed Apr 23, 2024
1 parent 553117d commit c7e4381
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion v2/flexible_adjust_ltv.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (s *FlexibleLoanAdjustLTVService) Direction(direction FLAdjustLTVDirection)
func (s *FlexibleLoanAdjustLTVService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanAdjustLTVResp, err error) {
r := &request{
method: http.MethodPost,
endpoint: "/sapi/v1/loan/flexible/adjust/ltv",
endpoint: "/sapi/v2/loan/flexible/adjust/ltv",
secType: secTypeSigned,
}

Expand Down
2 changes: 1 addition & 1 deletion v2/flexible_loan_repay.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (s *FlexibleLoanRepayService) FullRepayment(fullRepayment bool) *FlexibleLo
func (s *FlexibleLoanRepayService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanRepayResp, err error) {
r := &request{
method: http.MethodPost,
endpoint: "/sapi/v1/loan/flexible/repay",
endpoint: "/sapi/v2/loan/flexible/repay",
secType: secTypeSigned,
}

Expand Down
2 changes: 1 addition & 1 deletion v2/get_flexible_loan_borrow_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (s *GetFlexibleLoanBorrowHistoryService) EndTime(endTime int64) *GetFlexibl
func (s *GetFlexibleLoanBorrowHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *GetFlexibleLoanBorrowHistoryResp, err error) {
r := &request{
method: http.MethodGet,
endpoint: "/sapi/v1/loan/flexible/borrow/history",
endpoint: "/sapi/v2/loan/flexible/borrow/history",
secType: secTypeSigned,
}

Expand Down
2 changes: 1 addition & 1 deletion v2/get_flexible_loan_ongoing_orders.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *GetFlexibleLoanOngoingOrdersService) Limit(limit int64) *GetFlexibleLoa
func (s *GetFlexibleLoanOngoingOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *GetFlexibleLoanOngoingOrdersResp, err error) {
r := &request{
method: http.MethodGet,
endpoint: "/sapi/v1/loan/flexible/ongoing/orders",
endpoint: "/sapi/v2/loan/flexible/ongoing/orders",
secType: secTypeSigned,
}

Expand Down
2 changes: 1 addition & 1 deletion v2/get_flexible_loan_repay_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (s *GetFlexibleLoanRepayHistoryService) EndTime(endTime int64) *GetFlexible
func (s *GetFlexibleLoanRepayHistoryService) Do(ctx context.Context, opts ...RequestOption) (res *GetFlexibleLoanRepayHistoryResp, err error) {
r := &request{
method: http.MethodGet,
endpoint: "/sapi/v1/loan/flexible/repay/history",
endpoint: "/sapi/v2/loan/flexible/repay/history",
secType: secTypeSigned,
}

Expand Down
4 changes: 2 additions & 2 deletions v2/loan_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ type GetFlexibleLoanAssetsDataService struct {
func (s *GetFlexibleLoanAssetsDataService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanableAssets, err error) {
r := &request{
method: http.MethodGet,
endpoint: "/sapi/v1/loan/flexible/loanable/data",
endpoint: "/sapi/v2/loan/flexible/loanable/data",
secType: secTypeSigned,
}

Expand Down Expand Up @@ -182,7 +182,7 @@ func (s *FlexibleLoanBorrowService) CollateralAmount(collAmt float64) *FlexibleL
func (s *FlexibleLoanBorrowService) Do(ctx context.Context, opts ...RequestOption) (res *FlexibleLoanBorrowResp, err error) {
r := &request{
method: http.MethodPost,
endpoint: "/sapi/v1/loan/flexible/borrow",
endpoint: "/sapi/v2/loan/flexible/borrow",
secType: secTypeSigned,
}

Expand Down

0 comments on commit c7e4381

Please sign in to comment.