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