Documentation ¶
Index ¶
- Constants
- type RestClient
- func (rc *RestClient) FeeRate(ctx context.Context, syms ...exchange.Symbol) ([]exchange.TradeFee, error)
- func (rc *RestClient) Init(ctx context.Context) error
- func (rc *RestClient) NewSpotSymbol(base, quote string) exchange.SpotSymbol
- func (rc *RestClient) ParseSpotSymbol(pair string) (exchange.SpotSymbol, error)
- type SpotSymbol
- type Symbol
- type SymbolResp
- type TradeFeeResult
- type TransactFeeRate
Constants ¶
View Source
const (
SpotHost = "api.huobi.pro"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestClient ¶
type RestClient struct { *huobi.RestClient // contains filtered or unexported fields }
func NewRestClient ¶
func NewRestClient(key, secret string) *RestClient
func (*RestClient) NewSpotSymbol ¶
func (rc *RestClient) NewSpotSymbol(base, quote string) exchange.SpotSymbol
func (*RestClient) ParseSpotSymbol ¶
func (rc *RestClient) ParseSpotSymbol(pair string) (exchange.SpotSymbol, error)
type SpotSymbol ¶
type SpotSymbol struct {
*exchange.BaseSpotSymbol
}
func (*SpotSymbol) String ¶
func (ss *SpotSymbol) String() string
type SymbolResp ¶
type TradeFeeResult ¶
type TradeFeeResult struct { Code int `json:"code"` Success bool `json:"success"` Data []TransactFeeRate `json:"data"` }
Click to show internal directories.
Click to hide internal directories.