mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
binance: fix income history request path
This commit is contained in:
parent
b41f8a8355
commit
d05cbca652
|
@ -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
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user