asks

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asks

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

func New

func New(degree int, symbol string) *Asks

func (*Asks) Clear

func (d *Asks) Clear()

Clear implements depth_interface.Depths.

func (*Asks) Count

func (d *Asks) Count() int

Count implements depth_interface.Depths.

func (*Asks) Degree

func (d *Asks) Degree() int

func (*Asks) Delete

func (a *Asks) Delete(item *items_types.Ask)

func (*Asks) Get

func (a *Asks) Get(item *items_types.Ask) *items_types.Ask

func (*Asks) GetDeltaPrice

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

func (*Asks) GetDeltaPricePercent

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

func (*Asks) GetFiltered

func (d *Asks) GetFiltered(f ...items_types.DepthFilter) (asks *Asks)

func (*Asks) GetMaxPrice

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

func (*Asks) GetMiddleQuantity

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

func (*Asks) GetMiddleValue

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

func (*Asks) GetMinMaxByPrice

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

func (*Asks) GetMinMaxByQuantity

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

func (*Asks) GetMinMaxByValue

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

func (*Asks) GetMinPrice

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

func (*Asks) GetStandardDeviation

func (d *Asks) GetStandardDeviation() float64

func (*Asks) GetSummaByPrice

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

func (*Asks) GetSummaByPricePercent

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

func (*Asks) GetSummaByPriceRange

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

func (*Asks) GetSummaByQuantity

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

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

func (*Asks) GetSummaByQuantityPercent

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

func (*Asks) GetSummaByValue

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

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

func (*Asks) GetSummaByValuePercent

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

func (*Asks) GetSummaQuantity

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

func (*Asks) GetSummaValue

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

func (*Asks) GetTree

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

Get implements depth_interface.Depths.

func (*Asks) NextPriceUp

func (d *Asks) NextPriceUp(percent items_types.PricePercentType) items_types.PriceType

func (*Asks) RestrictDown

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

RestrictDown implements depth_interface.Depths.

func (*Asks) RestrictUp

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

RestrictUp implements depth_interface.Depths.

func (*Asks) Set

func (a *Asks) Set(item *items_types.Ask) (err error)

func (*Asks) SetTree

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

Set implements depth_interface.Depths.

func (*Asks) Symbol

func (d *Asks) Symbol() string

Symbol implements depth_interface.Depths.

func (*Asks) Update

func (a *Asks) Update(item *items_types.Ask) bool

Jump to

Keyboard shortcuts

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