Documentation
¶
Index ¶
- type EventQueue
- type OrderBook
- func (o *OrderBook) BestPrices() (float64, float64)
- func (o *OrderBook) GetEvents() []common.Event
- func (o *OrderBook) GetSnapshot() common.Snapshot
- func (o *OrderBook) LastUpdate() time.Time
- func (o *OrderBook) LimitSnapshotSize(val int) *OrderBook
- func (o *OrderBook) SetTimeOffset(t time.Time) *OrderBook
- func (o *OrderBook) Update(order common.Order, initial bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventQueue ¶
type EventQueue struct {
// contains filtered or unexported fields
}
func (*EventQueue) Add ¶
func (q *EventQueue) Add(e common.Event)
func (*EventQueue) Count ¶
func (q *EventQueue) Count() int
func (*EventQueue) Remove ¶
func (q *EventQueue) Remove() *common.Event
func (*EventQueue) RemoveAll ¶
func (q *EventQueue) RemoveAll() []common.Event
type OrderBook ¶
type OrderBook struct {
// contains filtered or unexported fields
}
func NewAddModeOrderBook ¶
func (*OrderBook) BestPrices ¶
func (*OrderBook) GetSnapshot ¶
func (*OrderBook) LastUpdate ¶
func (*OrderBook) LimitSnapshotSize ¶
Click to show internal directories.
Click to hide internal directories.