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

26 lines
627 B
Go
Raw Normal View History

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