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

23 lines
609 B
Go
Raw Normal View History

2024-06-27 14:42:38 +00:00
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}
}