diff --git a/v2/flexible_adjust_ltv.go b/v2/flexible_adjust_ltv.go index 9a7d7558..d0f2a75f 100644 --- a/v2/flexible_adjust_ltv.go +++ b/v2/flexible_adjust_ltv.go @@ -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, } diff --git a/v2/flexible_loan_repay.go b/v2/flexible_loan_repay.go index dc4af5c4..618b13b8 100644 --- a/v2/flexible_loan_repay.go +++ b/v2/flexible_loan_repay.go @@ -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, } diff --git a/v2/get_flexible_loan_borrow_history.go b/v2/get_flexible_loan_borrow_history.go index 1aad53b2..1dada1af 100644 --- a/v2/get_flexible_loan_borrow_history.go +++ b/v2/get_flexible_loan_borrow_history.go @@ -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, } diff --git a/v2/get_flexible_loan_ongoing_orders.go b/v2/get_flexible_loan_ongoing_orders.go index 5ba2f9a5..779c837a 100644 --- a/v2/get_flexible_loan_ongoing_orders.go +++ b/v2/get_flexible_loan_ongoing_orders.go @@ -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, } diff --git a/v2/get_flexible_loan_repay_history.go b/v2/get_flexible_loan_repay_history.go index e691c529..c5eed923 100644 --- a/v2/get_flexible_loan_repay_history.go +++ b/v2/get_flexible_loan_repay_history.go @@ -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, } diff --git a/v2/loan_service.go b/v2/loan_service.go index d382ef91..bd0f1f91 100644 --- a/v2/loan_service.go +++ b/v2/loan_service.go @@ -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, } @@ -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, }