mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
max: fix v3 loan/repay api path
This commit is contained in:
parent
ae8625da31
commit
8aec251a62
|
@ -149,14 +149,14 @@ type GetMarginLoanHistoryRequest struct {
|
|||
limit *int `param:"limit"`
|
||||
}
|
||||
|
||||
//go:generate PostRequest -url "/api/v3/wallet/m/loans/:currency" -type MarginLoanRequest -responseType .LoanRecord
|
||||
//go:generate PostRequest -url "/api/v3/wallet/m/loan/:currency" -type MarginLoanRequest -responseType .LoanRecord
|
||||
type MarginLoanRequest struct {
|
||||
client requestgen.AuthenticatedAPIClient
|
||||
currency string `param:"currency,slug,required"`
|
||||
amount string `param:"amount"`
|
||||
}
|
||||
|
||||
//go:generate PostRequest -url "/api/v3/wallet/m/repayments/:currency" -type MarginRepayRequest -responseType .RepaymentRecord
|
||||
//go:generate PostRequest -url "/api/v3/wallet/m/repayment/:currency" -type MarginRepayRequest -responseType .RepaymentRecord
|
||||
type MarginRepayRequest struct {
|
||||
client requestgen.AuthenticatedAPIClient
|
||||
currency string `param:"currency,slug,required"`
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by "requestgen -method POST -url /api/v3/wallet/m/loans/:currency -type MarginLoanRequest -responseType .LoanRecord"; DO NOT EDIT.
|
||||
// Code generated by "requestgen -method POST -url /api/v3/wallet/m/loan/:currency -type MarginLoanRequest -responseType .LoanRecord"; DO NOT EDIT.
|
||||
|
||||
package v3
|
||||
|
||||
|
@ -143,7 +143,7 @@ func (m *MarginLoanRequest) Do(ctx context.Context) (*LoanRecord, error) {
|
|||
}
|
||||
query := url.Values{}
|
||||
|
||||
apiURL := "/api/v3/wallet/m/loans/:currency"
|
||||
apiURL := "/api/v3/wallet/m/loan/:currency"
|
||||
slugs, err := m.GetSlugsMap()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by "requestgen -method POST -url /api/v3/wallet/m/repayments/:currency -type MarginRepayRequest -responseType .RepaymentRecord"; DO NOT EDIT.
|
||||
// Code generated by "requestgen -method POST -url /api/v3/wallet/m/repayment/:currency -type MarginRepayRequest -responseType .RepaymentRecord"; DO NOT EDIT.
|
||||
|
||||
package v3
|
||||
|
||||
|
@ -143,7 +143,7 @@ func (m *MarginRepayRequest) Do(ctx context.Context) (*RepaymentRecord, error) {
|
|||
}
|
||||
query := url.Values{}
|
||||
|
||||
apiURL := "/api/v3/wallet/m/repayments/:currency"
|
||||
apiURL := "/api/v3/wallet/m/repayment/:currency"
|
||||
slugs, err := m.GetSlugsMap()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue
Block a user