mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
assign standard indicator set to the session
This commit is contained in:
parent
e2df24f31c
commit
7d7d2c2fc7
|
@ -143,6 +143,7 @@ func (environ *Environment) Connect(ctx context.Context) error {
|
|||
|
||||
standardIndicatorSet := NewStandardIndicatorSet(symbol)
|
||||
standardIndicatorSet.BindMarketDataStore(marketDataStore)
|
||||
session.standardIndicatorSets[symbol] = standardIndicatorSet
|
||||
}
|
||||
|
||||
// move market data store dispatch to here, use one callback to dispatch the market data
|
||||
|
@ -152,7 +153,7 @@ func (environ *Environment) Connect(ctx context.Context) error {
|
|||
for symbol := range loadedSymbols {
|
||||
marketDataStore, ok := session.marketDataStores[symbol]
|
||||
if !ok {
|
||||
return errors.Errorf("symbol is not defined")
|
||||
return errors.Errorf("symbol %s is not defined", symbol)
|
||||
}
|
||||
|
||||
for interval := range types.SupportedIntervals {
|
||||
|
|
Loading…
Reference in New Issue
Block a user