Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BarWriterImpl ¶
type BarWriterImpl struct { MarketStoreWriter MarketStoreWriter Timeframe string // BarWriterImpl writes data with the timezone Timezone *time.Location }
BarWriterImpl is an implementation of the BarWriter interface.
type MarketStoreWriter ¶
type MarketStoreWriter interface {
Write(csm io.ColumnSeriesMap) error
}
MarketStoreWriter is an interface to write data to marketstore. this interface is necessary for writing unit tests of Alpaca Broker API Feeder without actually saving data to the marketstore.
type MarketStoreWriterImpl ¶
type MarketStoreWriterImpl struct{}
MarketStoreWriterImpl writes the column series map data to the local marketstore data.
func (*MarketStoreWriterImpl) Write ¶
func (m *MarketStoreWriterImpl) Write(csm io.ColumnSeriesMap) error
type MarketTimeChecker ¶ added in v4.1.18
type NoopMarketTimeChecker ¶ added in v4.1.18
type NoopMarketTimeChecker struct{}
NoopMarketTimeChecker checks nothing and always returns IsOpen=true.
type SnapshotWriter ¶
SnapshotWriter is an interface to write the realtime stock data to the marketstore.
type SnapshotWriterImpl ¶
type SnapshotWriterImpl struct { MarketStoreWriter MarketStoreWriter Timeframe string // SnapshotWriterImpl writes data with the timezone Timezone *time.Location TimeChecker MarketTimeChecker }
SnapshotWriterImpl is an implementation of the SnapshotWriter interface.
func NewSnapshotWriterImpl ¶ added in v4.1.18
func NewSnapshotWriterImpl(w MarketStoreWriter, tf string, tz *time.Location, tc MarketTimeChecker, ) *SnapshotWriterImpl
Click to show internal directories.
Click to hide internal directories.