Documentation ¶
Index ¶
Constants ¶
View Source
const (
ContractStatusOnline = 1
)
View Source
const (
FutureHost = "api.hbdm.com"
)
View Source
const (
FutureWSAddr = "wss://api.hbdm.com/ws"
)
Variables ¶
This section is empty.
Functions ¶
func TypeString ¶ added in v0.3.0
func TypeString(ft exchange.FutureType) string
Types ¶
type FutureSymbol ¶
type FutureSymbol struct {
*exchange.BaseFutureSymbol
}
func (*FutureSymbol) String ¶
func (fs *FutureSymbol) String() string
func (*FutureSymbol) WSSub ¶
func (fs *FutureSymbol) WSSub() string
WSSub return symbol which used by websocket subscribe
type FutureSymbolResp ¶
type RestClient ¶
type RestClient struct { *huobi.RestClient // contains filtered or unexported fields }
func NewRestClient ¶
func NewRestClient(key, secret string) *RestClient
func (*RestClient) GetFutureSymbols ¶
func (rc *RestClient) GetFutureSymbols(index string) []*FutureSymbol
type WSClientDeriv ¶
WSClientDeriv define common logic used by huobi future swap ws
func NewWSClientDeriv ¶
func NewWSClientDeriv(addr string, codec rpc.Codec, data chan interface{}) *WSClientDeriv
func (*WSClientDeriv) DoSubscribe ¶
func (ws *WSClientDeriv) DoSubscribe(ctx context.Context, channels []string) error
Click to show internal directories.
Click to hide internal directories.