mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
bbgo: do not sync trades when running backtest
This commit is contained in:
parent
f5bbe29ac6
commit
a3e3e1d177
|
@ -387,7 +387,7 @@ func (session *ExchangeSession) initSymbol(ctx context.Context, environ *Environ
|
|||
|
||||
var err error
|
||||
var trades []types.Trade
|
||||
if environ.SyncService != nil {
|
||||
if environ.SyncService != nil && environ.BacktestService == nil {
|
||||
tradingFeeCurrency := session.Exchange.PlatformFeeCurrency()
|
||||
if strings.HasPrefix(symbol, tradingFeeCurrency) {
|
||||
trades, err = environ.TradeService.QueryForTradingFeeCurrency(session.Exchange.Name(), symbol, tradingFeeCurrency)
|
||||
|
|
Loading…
Reference in New Issue
Block a user