Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalOrderBook ¶ added in v1.1.13
Types ¶
type CsvDataLoader ¶
type CsvDataLoader struct {
// contains filtered or unexported fields
}
func NewCsvDataLoader ¶
func NewCsvDataLoader(filename string) *CsvDataLoader
func (*CsvDataLoader) HasMoreData ¶
func (l *CsvDataLoader) HasMoreData() bool
func (*CsvDataLoader) ReadOrderBooks ¶ added in v1.2.2
func (l *CsvDataLoader) ReadOrderBooks() (result []*OrderBook)
func (*CsvDataLoader) ReadRecords ¶ added in v1.2.2
func (l *CsvDataLoader) ReadRecords(limit int) []*Record
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func NewCsvData ¶
func NewData ¶ added in v1.1.13
func NewData(loader DataLoader) *Data
func NewMongoDBData ¶ added in v1.1.13
func (*Data) GetMaxIndex ¶
func (*Data) GetOrderBook ¶
func (d *Data) GetOrderBook() *OrderBook
func (*Data) GetRecords ¶ added in v1.2.2
type DataLoader ¶
type MongoDBDataLoader ¶ added in v1.1.13
type MongoDBDataLoader struct {
// contains filtered or unexported fields
}
func NewMongoDBDataLoader ¶ added in v1.1.13
func NewMongoDBDataLoader(uri string, db string, exchange string, symbol string) *MongoDBDataLoader
func (*MongoDBDataLoader) HasMoreData ¶ added in v1.1.13
func (l *MongoDBDataLoader) HasMoreData() bool
func (*MongoDBDataLoader) ReadOrderBooks ¶ added in v1.2.2
func (l *MongoDBDataLoader) ReadOrderBooks() (result []*OrderBook)
func (*MongoDBDataLoader) ReadRecords ¶ added in v1.2.2
func (l *MongoDBDataLoader) ReadRecords(limit int) []*Record
Click to show internal directories.
Click to hide internal directories.