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 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 }
SnapshotWriterImpl is an implementation of the SnapshotWriter interface.
Click to show internal directories.
Click to hide internal directories.