Documentation
¶
Index ¶
Constants ¶
View Source
const (
WSClientEndPoint = "wss://dstream.binance.com/ws"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookTickerChannel ¶
type BookTickerChannel struct {
// contains filtered or unexported fields
}
func NewBookTickerChannel ¶
func NewBookTickerChannel(sym string) *BookTickerChannel
func (*BookTickerChannel) String ¶
func (bt *BookTickerChannel) String() string
type BookTickerNotify ¶
type BookTickerNotify struct { Event string `json:"e"` UpdateID int64 `json:"u"` PushTime int64 `json:"E"` Pair string `json:"ps"` MatchTime int64 `json:"T"` Symbol string `json:"s"` Bid1Price string `json:"b"` Bid1Amount string `json:"B"` Ask1Price string `json:"a"` Ask1Amount string `json:"A"` }
func ParseBookTickerNotify ¶
func ParseBookTickerNotify(g *gjson.Result) *BookTickerNotify
type WSClient ¶
type WSClient struct {
*binance.NotifyClient
}
func NewWSClient ¶
func NewWSClient(data chan interface{}) *WSClient
Click to show internal directories.
Click to hide internal directories.