binance: fix income history request path

This commit is contained in:
c9s 2023-03-25 02:09:42 +08:00
parent b41f8a8355
commit d05cbca652
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ type FuturesIncome struct {
TradeId string `json:"tradeId"`
}
//go:generate requestgen -method GET -url "/fapi/v2/positionRisk" -type FuturesGetIncomeHistoryRequest -responseType []FuturesIncome
//go:generate requestgen -method GET -url "/fapi/v1/income" -type FuturesGetIncomeHistoryRequest -responseType []FuturesIncome
type FuturesGetIncomeHistoryRequest struct {
client requestgen.AuthenticatedAPIClient

View File

@ -1,4 +1,4 @@
// Code generated by "requestgen -method GET -url /fapi/v2/positionRisk -type FuturesGetIncomeHistoryRequest -responseType []FuturesIncome"; DO NOT EDIT.
// Code generated by "requestgen -method GET -url /fapi/v1/income -type FuturesGetIncomeHistoryRequest -responseType []FuturesIncome"; DO NOT EDIT.
package binanceapi
@ -192,7 +192,7 @@ func (f *FuturesGetIncomeHistoryRequest) Do(ctx context.Context) ([]FuturesIncom
return nil, err
}
apiURL := "/fapi/v2/positionRisk"
apiURL := "/fapi/v1/income"
req, err := f.client.NewAuthenticatedRequest(ctx, "GET", apiURL, query, params)
if err != nil {