items

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookTicker

type BookTicker struct {
	Symbol string
	// contains filtered or unexported fields
}

func New

func New(
	symbol string,
	bidPrice depths_items.PriceType,
	bidQuantity depths_items.QuantityType,
	askPrice depths_items.PriceType,
	askQuantity depths_items.QuantityType,
	updateID ...int64) *BookTicker

func (*BookTicker) Equal

func (i *BookTicker) Equal(than btree.Item) bool

func (*BookTicker) GetAskPrice

func (btt *BookTicker) GetAskPrice() depths_items.PriceType

func (*BookTicker) GetAskQuantity

func (btt *BookTicker) GetAskQuantity() depths_items.QuantityType

func (*BookTicker) GetAskValue

func (btt *BookTicker) GetAskValue() depths_items.ValueType

func (*BookTicker) GetBidPrice

func (btt *BookTicker) GetBidPrice() depths_items.PriceType

func (*BookTicker) GetBidQuantity

func (btt *BookTicker) GetBidQuantity() depths_items.QuantityType

func (*BookTicker) GetBidValue

func (btt *BookTicker) GetBidValue() depths_items.ValueType

func (*BookTicker) GetSymbol

func (btt *BookTicker) GetSymbol() string

func (*BookTicker) GetUpdateID

func (btt *BookTicker) GetUpdateID() int64

func (*BookTicker) Less

func (i *BookTicker) Less(than btree.Item) bool

func (*BookTicker) SetAskPrice

func (btt *BookTicker) SetAskPrice(askPrice depths_items.PriceType)

func (*BookTicker) SetAskQuantity

func (btt *BookTicker) SetAskQuantity(askQuantity depths_items.QuantityType)

func (*BookTicker) SetBidPrice

func (btt *BookTicker) SetBidPrice(bidPrice depths_items.PriceType)

func (*BookTicker) SetBidQuantity

func (btt *BookTicker) SetBidQuantity(bidQuantity depths_items.QuantityType)

func (*BookTicker) SetUpdateID

func (btt *BookTicker) SetUpdateID(updateID int64)

Jump to

Keyboard shortcuts

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