qbtrade/pkg/exchange/binance/binanceapi/get_trade_fee_request.go
2024-06-27 22:42:38 +08:00

23 lines
609 B
Go

package binanceapi
import (
"github.com/c9s/requestgen"
"git.qtrade.icu/lychiyu/qbtrade/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}
}