qbtrade/pkg/exchange/binance/binanceapi/get_historical_trades_request.go

21 lines
534 B
Go
Raw Normal View History

2024-06-27 14:42:38 +00:00
package binanceapi
import (
"github.com/c9s/requestgen"
)
//type Trade = binance.TradeV3
//go:generate requestgen -method GET -url "/api/v3/historicalTrades" -type GetHistoricalTradesRequest -responseType []Trade
type GetHistoricalTradesRequest struct {
client requestgen.AuthenticatedAPIClient
symbol string `param:"symbol"`
limit *uint64 `param:"limit"`
fromID *uint64 `param:"fromId"`
}
func (c *RestClient) NewGetHistoricalTradesRequest() *GetHistoricalTradesRequest {
return &GetHistoricalTradesRequest{client: c}
}