feeds

package
v0.0.0-...-08b7c41 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVDOHLCVRecordParser

type CSVDOHLCVRecordParser struct {
}

func (*CSVDOHLCVRecordParser) ParseRecord

func (csvFPSP *CSVDOHLCVRecordParser) ParseRecord(csvRecord []string,
	dateColumnIndex int,
	openPriceColumnIndex int,
	highPriceColumnIndex int,
	lowPriceColumnIndex int,
	closePriceColumnIndex int,
	volumeColumnIndex int,
	dateParser TextDateParser) (dholcv gotrade.DOHLCV, err error)

type CSVFileFeed

type CSVFileFeed struct {
	*CSVDOHLCVRecordParser
	// contains filtered or unexported fields
}

func NewCSVFileFeed

func NewCSVFileFeed(fileName string,
	dateColumnIndex int,
	openPriceColumnIndex int,
	highPriceColumnIndex int,
	lowPriceColumnIndex int,
	closePriceColumnIndex int,
	volumeColumnIndex int,
	dateParser TextDateParser) *CSVFileFeed

func NewCSVFileFeedWithDOHLCVFormat

func NewCSVFileFeedWithDOHLCVFormat(fileName string,
	dateParser TextDateParser) *CSVFileFeed

func (*CSVFileFeed) FillDOHLCVStream

func (csvFPSF *CSVFileFeed) FillDOHLCVStream(priceStream gotrade.DOHLCVStreamTickReceiver) (err error)

type TextDateParser

type TextDateParser func(textDate string) (date time.Time, err error)

func DashedYearDayMonthDateParser

func DashedYearDayMonthDateParser() TextDateParser

func DashedYearDayMonthDateParserForLocation

func DashedYearDayMonthDateParserForLocation(location *time.Location) TextDateParser

Jump to

Keyboard shortcuts

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