Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteExecutionsToFile ¶
func WriteExecutionsToFile(executions *[]bitflyergo.Execution, fileType string, headerOn bool, bufferSize int)
Types ¶
type BoardCollector ¶
type BoardCollector struct { Asks map[float64]float64 Bids map[float64]float64 AskPrices []float64 BidPrices []float64 BoardMutex *sync.Mutex SummaryPerSec []*bq.BqBoard AggInterval time.Duration }
func NewCollector ¶
func NewCollector() *BoardCollector
func (*BoardCollector) Agg ¶
func (c *BoardCollector) Agg()
func (*BoardCollector) BestAskPrice ¶
func (c *BoardCollector) BestAskPrice() float64
func (*BoardCollector) BestBidPrice ¶
func (c *BoardCollector) BestBidPrice() float64
func (*BoardCollector) MidPrice ¶
func (c *BoardCollector) MidPrice() float64
func (*BoardCollector) Spread ¶
func (c *BoardCollector) Spread() float64
func (*BoardCollector) UpdateBoard ¶
func (c *BoardCollector) UpdateBoard(newBoard *bitflyergo.Board, refresh bool)
Update board
Click to show internal directories.
Click to hide internal directories.