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

26 lines
627 B
Go

package binanceapi
import (
"github.com/c9s/requestgen"
)
type DepositAddress struct {
Address string `json:"address"`
Coin string `json:"coin"`
Tag string `json:"tag"`
Url string `json:"url"`
}
//go:generate requestgen -method GET -url "/sapi/v1/capital/deposit/address" -type GetDepositAddressRequest -responseType .DepositAddress
type GetDepositAddressRequest struct {
client requestgen.AuthenticatedAPIClient
coin string `param:"coin"`
network *string `param:"network"`
}
func (c *RestClient) NewGetDepositAddressRequest() *GetDepositAddressRequest {
return &GetDepositAddressRequest{client: c}
}