binance

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListener

func NewListener(symbol string, options ...Option) exchange.Listener

Types

type DepthUpdateMessage

type DepthUpdateMessage struct {
	Timestamp timestamp.T
	Received  timestamp.T

	FirstID int64
	FinalID int64

	Bids []exchange.PriceLevelUpdate
	Asks []exchange.PriceLevelUpdate
}

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func (*Listener) Book

func (l *Listener) Book() <-chan *exchange.BookUpdate

func (*Listener) Exchange

func (l *Listener) Exchange() string

func (*Listener) Start

func (l *Listener) Start(ctx context.Context) error

func (*Listener) Symbol

func (l *Listener) Symbol() string

func (*Listener) Trades

func (l *Listener) Trades() <-chan []*exchange.Trade

type Options

type Options struct {
	Stderr common.Printlnfer
}

type TradeMessage

type TradeMessage struct {
	Timestamp timestamp.T
	Received  timestamp.T
	Occurred  timestamp.T

	TradeID     int64
	BuyOrderID  int64
	SellOrderID int64

	Price    string
	Quantity string
	MakerBuy bool
}

Jump to

Keyboard shortcuts

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