Documentation
¶
Index ¶
- func CustomComparator(a, b interface{}) int
- type Book
- type Books
- type LimitOrderBook
- type LimitOrderPlacement
- type Orderbook
- func (p *Orderbook) Best() (ask, bid Book)
- func (p *Orderbook) GetCap() (askcap, bidcap int)
- func (p *Orderbook) GetMax() (askmax, bidmax Book)
- func (p *Orderbook) GetMin() (askmin, bidmin Book)
- func (p *Orderbook) LOB(rangeRatio decimal.Decimal) *LimitOrderPlacement
- func (p *Orderbook) Remover(setPrice decimal.Decimal) *Orderbook
- func (p *Orderbook) SetCap(askcap, bidcap int) *Orderbook
- func (p *Orderbook) Update(asks, bids []Book)
- func (p *Orderbook) Wall(targetSize float64) (ask, bid Book)
- type Remover
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomComparator ¶
func CustomComparator(a, b interface{}) int
CustomComparator provides a basic comparison on decimal
Types ¶
type Books ¶
type Books struct { Books []Book // contains filtered or unexported fields }
type LimitOrderBook ¶
type LimitOrderPlacement ¶
type LimitOrderPlacement struct { Accumulation decimal.Decimal AccAsksRatio decimal.Decimal AccBidsRatio decimal.Decimal Asks []LimitOrderBook Bids []LimitOrderBook }
Click to show internal directories.
Click to hide internal directories.