Documentation
¶
Index ¶
- type Ask
- type Bid
- type DeltaPriceType
- type DeltaQuantityType
- type DeltaValueType
- type DepthFilter
- type DepthItem
- func (i *DepthItem) Equal(than btree.Item) bool
- func (i *DepthItem) GetPrice() PriceType
- func (i *DepthItem) GetQuantity() QuantityType
- func (d *DepthItem) GetQuantityDeviation(middle QuantityType) float64
- func (i *DepthItem) GetValue() ValueType
- func (i *DepthItem) Less(than btree.Item) bool
- func (i *DepthItem) SetPrice(price PriceType)
- func (i *DepthItem) SetQuantity(quantity QuantityType)
- type DepthIterator
- type DepthTester
- type NormalizedItem
- func (i *NormalizedItem) Add(price PriceType, quantity QuantityType)
- func (i *NormalizedItem) Delete(price PriceType, quantity QuantityType)
- func (i *NormalizedItem) Equal(than btree.Item) bool
- func (i *NormalizedItem) GetDepth(price PriceType) (depthItem *DepthItem)
- func (i *NormalizedItem) GetDepths() *btree.BTree
- func (i *NormalizedItem) GetMinMax(quantity QuantityType) (minMax *QuantityItem)
- func (i *NormalizedItem) GetMinMaxes() *btree.BTree
- func (i *NormalizedItem) GetNormalizedPrice() PriceType
- func (i *NormalizedItem) GetQuantity() QuantityType
- func (i *NormalizedItem) IsShouldDelete() bool
- func (i *NormalizedItem) Less(than btree.Item) bool
- func (i *NormalizedItem) SetQuantity(quantity QuantityType)
- type PriceOnQuantityType
- type PricePercentOnQuantityType
- type PricePercentType
- type PriceType
- type QuantityItem
- func (i *QuantityItem) Add(price PriceType, quantity QuantityType)
- func (i *QuantityItem) Delete(price PriceType, quantity QuantityType)
- func (i *QuantityItem) Equal(than btree.Item) bool
- func (i *QuantityItem) GetDepth(price PriceType) *DepthItem
- func (i *QuantityItem) GetDepthMax() *DepthItem
- func (i *QuantityItem) GetDepthMin() *DepthItem
- func (i *QuantityItem) GetDepths() *btree.BTree
- func (i *QuantityItem) IsShouldDelete() bool
- func (i *QuantityItem) Less(than btree.Item) bool
- type QuantityPercentType
- type QuantityType
- type ValuePercentType
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ask ¶
type Ask DepthItem
func NewAsk ¶
func NewAsk(price PriceType, quantity ...QuantityType) *Ask
func (*Ask) GetDepthItem ¶
type Bid ¶
type Bid DepthItem
func NewBid ¶
func NewBid(price PriceType, quantity ...QuantityType) *Bid
func (*Bid) GetDepthItem ¶
type DeltaPriceType ¶
type DeltaPriceType float64
type DeltaQuantityType ¶
type DeltaQuantityType float64
type DeltaValueType ¶
type DeltaValueType float64
type DepthFilter ¶
type DepthItem ¶
type DepthItem struct {
// contains filtered or unexported fields
}
func (*DepthItem) GetQuantity ¶
func (i *DepthItem) GetQuantity() QuantityType
func (*DepthItem) GetQuantityDeviation ¶
func (d *DepthItem) GetQuantityDeviation(middle QuantityType) float64
Статистичні функції
func (*DepthItem) SetQuantity ¶
func (i *DepthItem) SetQuantity(quantity QuantityType)
type DepthIterator ¶
type DepthIterator func(iterator btree.ItemIterator)
type DepthTester ¶
type NormalizedItem ¶
type NormalizedItem struct {
// contains filtered or unexported fields
}
func NewNormalizedItem ¶
func NewNormalizedItem(price PriceType, degree int, exp int, roundUp bool, quantityIn ...QuantityType) *NormalizedItem
func (*NormalizedItem) Add ¶
func (i *NormalizedItem) Add(price PriceType, quantity QuantityType)
func (*NormalizedItem) Delete ¶
func (i *NormalizedItem) Delete(price PriceType, quantity QuantityType)
func (*NormalizedItem) GetDepth ¶
func (i *NormalizedItem) GetDepth(price PriceType) (depthItem *DepthItem)
Робота зі стаканом
func (*NormalizedItem) GetDepths ¶
func (i *NormalizedItem) GetDepths() *btree.BTree
func (*NormalizedItem) GetMinMax ¶
func (i *NormalizedItem) GetMinMax(quantity QuantityType) (minMax *QuantityItem)
Робота з Мінімальними та Максимальними значеннями
func (*NormalizedItem) GetMinMaxes ¶
func (i *NormalizedItem) GetMinMaxes() *btree.BTree
func (*NormalizedItem) GetNormalizedPrice ¶
func (i *NormalizedItem) GetNormalizedPrice() PriceType
CRUD
func (*NormalizedItem) GetQuantity ¶
func (i *NormalizedItem) GetQuantity() QuantityType
Робота з кількістю по нормалізованим ордерам, повинно дорівнувати суммі кількостей по всіх ордерах в стакані
func (*NormalizedItem) IsShouldDelete ¶
func (i *NormalizedItem) IsShouldDelete() bool
func (*NormalizedItem) Less ¶
func (i *NormalizedItem) Less(than btree.Item) bool
Функції для btree.Btree
func (*NormalizedItem) SetQuantity ¶
func (i *NormalizedItem) SetQuantity(quantity QuantityType)
type PriceOnQuantityType ¶
type PriceOnQuantityType float64
type PricePercentOnQuantityType ¶
type PricePercentOnQuantityType float64
type PricePercentType ¶
type PricePercentType float64
type QuantityItem ¶
type QuantityItem struct {
// contains filtered or unexported fields
}
func NewQuantityItem ¶
func NewQuantityItem(price PriceType, quantity QuantityType, degree int) *QuantityItem
Конструктори
func (*QuantityItem) Add ¶
func (i *QuantityItem) Add(price PriceType, quantity QuantityType)
func (*QuantityItem) Delete ¶
func (i *QuantityItem) Delete(price PriceType, quantity QuantityType)
func (*QuantityItem) GetDepthMax ¶
func (i *QuantityItem) GetDepthMax() *DepthItem
func (*QuantityItem) GetDepthMin ¶
func (i *QuantityItem) GetDepthMin() *DepthItem
Робота з Мінімальними та Максимальними значеннями
func (*QuantityItem) GetDepths ¶
func (i *QuantityItem) GetDepths() *btree.BTree
func (*QuantityItem) IsShouldDelete ¶
func (i *QuantityItem) IsShouldDelete() bool
type QuantityPercentType ¶
type QuantityPercentType float64
type QuantityType ¶
type QuantityType float64
type ValuePercentType ¶
type ValuePercentType float64
Click to show internal directories.
Click to hide internal directories.