bids

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bids

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

func New

func New(degree int, symbol string) *Bids

func (*Bids) Clear

func (d *Bids) Clear()

Clear implements depth_interface.Depths.

func (*Bids) Count

func (d *Bids) Count() int

Count implements depth_interface.Depths.

func (*Bids) Degree

func (d *Bids) Degree() int

func (*Bids) Delete

func (a *Bids) Delete(item *items_types.Bid)

func (*Bids) Get

func (a *Bids) Get(item *items_types.Bid) *items_types.Bid

func (*Bids) GetDeltaPrice

func (d *Bids) GetDeltaPrice() (delta items_types.PriceType, err error)

func (*Bids) GetDeltaPricePercent

func (d *Bids) GetDeltaPricePercent() (delta items_types.PricePercentType, err error)

func (*Bids) GetFiltered

func (d *Bids) GetFiltered(f ...items_types.DepthFilter) (bids *Bids)

func (*Bids) GetMaxPrice

func (d *Bids) GetMaxPrice() (max *items_types.DepthItem, err error)

func (*Bids) GetMiddleQuantity

func (d *Bids) GetMiddleQuantity() items_types.QuantityType

func (*Bids) GetMiddleValue

func (d *Bids) GetMiddleValue() items_types.ValueType

func (*Bids) GetMinMaxByPrice

func (d *Bids) GetMinMaxByPrice() (min, max *items_types.DepthItem, err error)

func (*Bids) GetMinMaxByQuantity

func (d *Bids) GetMinMaxByQuantity() (min, max *items_types.DepthItem)

func (*Bids) GetMinMaxByValue

func (d *Bids) GetMinMaxByValue() (min, max *items_types.DepthItem)

func (*Bids) GetMinPrice

func (d *Bids) GetMinPrice() (min *items_types.DepthItem, err error)

func (*Bids) GetStandardDeviation

func (d *Bids) GetStandardDeviation() float64

func (*Bids) GetSummaByPrice

func (d *Bids) GetSummaByPrice(targetPrice items_types.PriceType, firstMax ...bool) (
	item *items_types.DepthItem,
	value items_types.ValueType,
	quantity items_types.QuantityType)

func (*Bids) GetSummaByPricePercent

func (d *Bids) GetSummaByPricePercent(targetPrice items_types.PricePercentType, firstMax ...bool) (
	item *items_types.DepthItem,
	value items_types.ValueType,
	quantity items_types.QuantityType)

func (*Bids) GetSummaByPriceRange

func (d *Bids) GetSummaByPriceRange(
	first,
	last items_types.PriceType,
	f ...items_types.DepthFilter) (
	value items_types.ValueType,
	quantity items_types.QuantityType)

func (*Bids) GetSummaByQuantity

func (d *Bids) GetSummaByQuantity(targetSumma items_types.QuantityType, firstMax ...bool) (
	item *items_types.DepthItem,
	value items_types.ValueType,
	quantity items_types.QuantityType)

Відбираємо по сумі

func (*Bids) GetSummaByQuantityPercent

func (d *Bids) GetSummaByQuantityPercent(target items_types.PricePercentType, firstMax ...bool) (
	item *items_types.DepthItem,
	value items_types.ValueType,
	quantity items_types.QuantityType)

func (*Bids) GetSummaByValue

func (d *Bids) GetSummaByValue(targetSumma items_types.ValueType, firstMax ...bool) (
	item *items_types.DepthItem,
	summaValue items_types.ValueType,
	summaQuantity items_types.QuantityType)

Відбираємо по сумі

func (*Bids) GetSummaByValuePercent

func (d *Bids) GetSummaByValuePercent(target items_types.PricePercentType, firstMax ...bool) (
	item *items_types.DepthItem,
	summaValue items_types.ValueType,
	summaQuantity items_types.QuantityType)

func (*Bids) GetSummaQuantity

func (d *Bids) GetSummaQuantity() items_types.QuantityType

func (*Bids) GetSummaValue

func (d *Bids) GetSummaValue() items_types.ValueType

func (*Bids) GetTree

func (d *Bids) GetTree() *btree.BTree

Get implements depth_interface.Depths.

func (*Bids) NextPriceDown

func (d *Bids) NextPriceDown(percent items_types.PricePercentType) items_types.PriceType

func (*Bids) RestrictDown

func (d *Bids) RestrictDown(price items_types.PriceType)

RestrictDown implements depth_interface.Depths.

func (*Bids) RestrictUp

func (d *Bids) RestrictUp(price items_types.PriceType)

RestrictUp implements depth_interface.Depths.

func (*Bids) Set

func (a *Bids) Set(item *items_types.Bid) (err error)

func (*Bids) SetTree

func (d *Bids) SetTree(tree *btree.BTree)

Set implements depth_interface.Depths.

func (*Bids) Symbol

func (d *Bids) Symbol() string

Symbol implements depth_interface.Depths.

func (*Bids) Update

func (a *Bids) Update(item *items_types.Bid) bool

Jump to

Keyboard shortcuts

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