bbgo/pkg/exchange/binance/binanceapi/get_trade_fee_request.go

23 lines
606 B
Go

package binanceapi
import (
"github.com/c9s/requestgen"
"git.qtrade.icu/lychiyu/bbgo/pkg/fixedpoint"
)
type TradeFee struct {
Symbol string `json:"symbol"`
MakerCommission fixedpoint.Value `json:"makerCommission"`
TakerCommission fixedpoint.Value `json:"takerCommission"`
}
//go:generate requestgen -method GET -url "/sapi/v1/asset/tradeFee" -type GetTradeFeeRequest -responseType []TradeFee
type GetTradeFeeRequest struct {
client requestgen.AuthenticatedAPIClient
}
func (c *RestClient) NewGetTradeFeeRequest() *GetTradeFeeRequest {
return &GetTradeFeeRequest{client: c}
}