Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orderbook ¶
type Orderbook struct {
// contains filtered or unexported fields
}
Orderbook defines a local cache of orderbooks for amending, appending and deleting changes and updates the main store for a stream
func (*Orderbook) FlushBuffer ¶
func (w *Orderbook) FlushBuffer()
FlushBuffer flushes w.ob data to be garbage collected and refreshed when a connection is lost and reconnected
func (*Orderbook) GetOrderbook ¶
GetOrderbook use sparingly. Modifying anything here will ruin hash calculation and cause problems
func (*Orderbook) LoadSnapshot ¶
LoadSnapshot loads initial snapshot of ob data, overwrite allows full ob to be completely rewritten because the exchange is a doing a full update not an incremental one
type Update ¶
type Update struct { UpdateID int64 // Used when no time is provided UpdateTime time.Time Asset asset.Item Action string // Used in conjunction with UpdateEntriesByID Bids []orderbook.Item Asks []orderbook.Item Pair currency.Pair }
Update stores orderbook updates and dictates what features to use when processing
Click to show internal directories.
Click to hide internal directories.