Documentation
¶
Index ¶
- type Asks
- func (d *Asks) Clear()
- func (d *Asks) Count() int
- func (d *Asks) Degree() int
- func (a *Asks) Delete(item *items_types.Ask)
- func (a *Asks) Get(item *items_types.Ask) *items_types.Ask
- func (d *Asks) GetDeltaPrice() (delta items_types.PriceType, err error)
- func (d *Asks) GetDeltaPricePercent() (delta items_types.PricePercentType, err error)
- func (d *Asks) GetFiltered(f ...items_types.DepthFilter) (asks *Asks)
- func (d *Asks) GetMaxPrice() (max *items_types.DepthItem, err error)
- func (d *Asks) GetMiddleQuantity() items_types.QuantityType
- func (d *Asks) GetMiddleValue() items_types.ValueType
- func (d *Asks) GetMinMaxByPrice() (min, max *items_types.DepthItem, err error)
- func (d *Asks) GetMinMaxByQuantity() (min, max *items_types.DepthItem)
- func (d *Asks) GetMinMaxByValue() (min, max *items_types.DepthItem)
- func (d *Asks) GetMinPrice() (min *items_types.DepthItem, err error)
- func (d *Asks) GetStandardDeviation() float64
- func (d *Asks) GetSummaByPrice(targetPrice items_types.PriceType, firstMax ...bool) (item *items_types.DepthItem, value items_types.ValueType, ...)
- func (d *Asks) GetSummaByPricePercent(targetPrice items_types.PricePercentType, firstMax ...bool) (item *items_types.DepthItem, value items_types.ValueType, ...)
- func (d *Asks) GetSummaByPriceRange(first, last items_types.PriceType, f ...items_types.DepthFilter) (value items_types.ValueType, quantity items_types.QuantityType)
- func (d *Asks) GetSummaByQuantity(targetSumma items_types.QuantityType, firstMax ...bool) (item *items_types.DepthItem, value items_types.ValueType, ...)
- func (d *Asks) GetSummaByQuantityPercent(target items_types.PricePercentType, firstMax ...bool) (item *items_types.DepthItem, value items_types.ValueType, ...)
- func (d *Asks) GetSummaByValue(targetSumma items_types.ValueType, firstMax ...bool) (item *items_types.DepthItem, summaValue items_types.ValueType, ...)
- func (d *Asks) GetSummaByValuePercent(target items_types.PricePercentType, firstMax ...bool) (item *items_types.DepthItem, summaValue items_types.ValueType, ...)
- func (d *Asks) GetSummaQuantity() items_types.QuantityType
- func (d *Asks) GetSummaValue() items_types.ValueType
- func (d *Asks) GetTree() *btree.BTree
- func (d *Asks) NextPriceUp(percent items_types.PricePercentType) items_types.PriceType
- func (d *Asks) RestrictDown(price items_types.PriceType)
- func (d *Asks) RestrictUp(price items_types.PriceType)
- func (a *Asks) Set(item *items_types.Ask) (err error)
- func (d *Asks) SetTree(tree *btree.BTree)
- func (d *Asks) Symbol() string
- func (a *Asks) Update(item *items_types.Ask) bool
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 (*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 (*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) 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.
Click to show internal directories.
Click to hide internal directories.