mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
bbgo: add more injection types
This commit is contained in:
parent
a9f9fa8fed
commit
bdcae5b763
|
@ -245,7 +245,15 @@ func (trader *Trader) RunSingleExchangeStrategy(ctx context.Context, strategy Si
|
|||
return fmt.Errorf("marketDataStore of symbol %s not found", symbol)
|
||||
}
|
||||
|
||||
if err := parseStructAndInject(strategy, market, indicatorSet, store); err != nil {
|
||||
|
||||
|
||||
if err := parseStructAndInject(strategy,
|
||||
market,
|
||||
indicatorSet,
|
||||
store,
|
||||
session,
|
||||
session.OrderExecutor,
|
||||
); err != nil {
|
||||
return errors.Wrapf(err, "failed to inject object into %T", strategy)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user