bitflyerspider

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecutionToCsv

func ExecutionToCsv(e *bitflyergo.Execution) string

約定履歴のCSV出力用文字列を返します

func ExecutionToJson

func ExecutionToJson(e *bitflyergo.Execution) string

約定履歴のJSON出力用文字列を返します

func ExecutionToTsv

func ExecutionToTsv(e *bitflyergo.Execution) string

約定履歴のTSV出力用文字列を返します

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL