//NewIntradayGrabber create a new intraday history grabber.  Two main goals first once a day do a round looking
// for all intraday history upto defaultIntradyStart back in time once a day. And secondly if the state is "active"
// then every 5 seconds do a look up of the latest during the times defaultStartTime - defaultStopTime (local)
NewIntradayGrabber create a new intraday history grabber.  Two main goals first once a day do a round looking
for all intraday history upto defaultIntradyStart back in time once a day. And secondly if the state is "active"
then every 5 seconds do a look up of the latest during the times defaultStartTime - defaultStopTime (local)
// NewIntradayGrabber create a new intraday history grabber . Two main goals first once a day do a round looking // for all intraday history upto defaultIntradyStart back in time once a day . And secondly if the state is " active " // then every 5 seconds do a look up of the latest during the times defaultStartTime - defaultStopTime ( local )
func NewIntradayGrabber(db *database.SibylDatabase, symbolCache *StockCache) *IntradayGrabber {
	killCtx, kill := context.WithCancel(context.Background())
	doneCtx, done := context.WithCancel(context.Background())
	return &IntradayGrabber{
		killCtx:    killCtx,
		kill:       kill,
		doneCtx:    doneCtx,
		done:       done,
		db:         db,
		stockCache: symbolCache,
	}
}
func NewIntradayGrabber ( db * database . SibylDatabase , symbolCache * StockCache ) * IntradayGrabber { killCtx , kill := context . WithCancel ( context . Background ( ) ) doneCtx , done := context . WithCancel ( context . Background ( ) ) return & IntradayGrabber { killCtx : killCtx , kill : kill , doneCtx : doneCtx , done : done , db : db , stockCache : symbolCache , } }
NewIntradayGrabber create a new intraday history grabber.
NewIntradayGrabber create a new intraday history grabber .