delivery

package
v0.5.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 6 Imported by: 0

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 CodeC

type CodeC struct {
	*binance.CodeC
}

func NewCodeC

func NewCodeC() *CodeC

func (*CodeC) Decode

func (cc *CodeC) Decode(raw []byte) (rpc.Response, error)

type WSClient

type WSClient struct {
	*binance.NotifyClient
}

func NewWSClient

func NewWSClient(data chan interface{}) *WSClient

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL