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 XigniteFeeder 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 QuotesRangeWriter ¶
type QuotesRangeWriter interface {
Write(symbol string, quotes []api.EndOfDayQuote, isIndexSymbol bool) error
}
QuotesRangeWriter is an interface to write the historical daily chart data to the marketstore
type QuotesRangeWriterImpl ¶
type QuotesRangeWriterImpl struct { MarketStoreWriter MarketStoreWriter Timeframe string }
QuotesRangeWriterImpl is an implementation of the QuotesRangeWriter interface
func (*QuotesRangeWriterImpl) Write ¶
func (q *QuotesRangeWriterImpl) Write(symbol string, quotes []api.EndOfDayQuote, isIndexSymbol bool) error
Write converts the Response of the QuickEquityHistorical/GetQuotesRange API to a ColumnSeriesMap and write it to the local marketstore server.
type QuotesWriter ¶
type QuotesWriter interface {
Write(resp api.GetQuotesResponse) error
}
QuotesWriter is an interface to write the realtime stock data to the marketstore
type QuotesWriterImpl ¶
type QuotesWriterImpl struct { MarketStoreWriter MarketStoreWriter Timeframe string // QuotesWriterImpl writes data with the timezone Timezone *time.Location }
QuotesWriterImpl is an implementation of the QuotesWriter interface
func (QuotesWriterImpl) Write ¶
func (q QuotesWriterImpl) Write(quotes api.GetQuotesResponse) error
Write converts the Response of the GetQuotes API to a ColumnSeriesMap and write it to the local marketstore server.