Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TdiCsvToTrd ¶
TdiCsvToTrd converts a csv line slice in TickData's (www.tickdata.com) format to a Trade Value Symbol,Date,Time,Price,Volume ESU13,09/01/2013,17:00:00.083,1640.25,8
Types ¶
type StaticTradesSource ¶
type StaticTradesSource struct { Symbol string TotalTrades int // contains filtered or unexported fields }
StaticTradesSource generates random timed trades starting at start time and stopping when the total number of records reaches TotalTrades
func (*StaticTradesSource) Next ¶
func (st *StaticTradesSource) Next() (gopeat.TimeStamper, bool)
Next implements an iterator for the contents of the csv data
func (*StaticTradesSource) SetEndTime ¶
func (st *StaticTradesSource) SetEndTime(endTime time.Time)
SetEndTime sets max timpstamp for data provided
func (*StaticTradesSource) SetStartTime ¶
func (st *StaticTradesSource) SetStartTime(startTime time.Time)
SetStartTime sets min timpstamp for data provided
type Trade ¶
Trade is a sale of a security at a time
func (Trade) GetTimeStamp ¶
GetTimeStamp returns the time the trade executed
func (Trade) MarshalJSON ¶
MarshalJSON returns version of trade with a unix timestamp
Click to show internal directories.
Click to hide internal directories.