Documentation ¶
Index ¶
- func UnmarshalOrderBook(raw *bson.Raw, ob *OrderBook)
- type CsvDataLoader
- type Data
- func (d *Data) GetDataRel() *Data
- func (d *Data) GetIndex() int
- func (d *Data) GetMaxIndex() int
- func (d *Data) GetOrderBook() *OrderBook
- func (d *Data) GetOrderBookByNS(symbol string, ns int64) *OrderBook
- func (d *Data) GetOrderBookRaw(offset int) *OrderBook
- func (d *Data) GetRecords(size int) []*Record
- func (d *Data) Len() int
- func (d *Data) Next() bool
- func (d *Data) Reset(start time.Time, end time.Time)
- func (d *Data) SetDataRel(relData *Data)
- type DataLoader
- type MongoDBDataLoader
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) GetDataRel ¶ added in v1.2.7
func (*Data) GetMaxIndex ¶
func (*Data) GetOrderBook ¶
func (d *Data) GetOrderBook() *OrderBook
func (*Data) GetOrderBookByNS ¶ added in v1.2.6
func (*Data) GetOrderBookRaw ¶ added in v1.2.6
func (*Data) GetRecords ¶ added in v1.2.2
func (*Data) SetDataRel ¶ added in v1.2.7
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.