Implement checking direction with assetfilter
This commit is contained in:
@@ -329,7 +329,7 @@ def execute_strategy(callback, strategy, func):
|
||||
|
||||
# Check against the asset groups
|
||||
if func == "entry" and strategy.assetgroup is not None:
|
||||
allowed = assetfilter.get_allowed(strategy, symbol, direction)
|
||||
allowed = assetfilter.get_allowed(strategy, base, quote, direction)
|
||||
if not allowed:
|
||||
log.debug(
|
||||
f"Denied trading {symbol} due to asset filter {strategy.assetgroup}"
|
||||
|
||||
Reference in New Issue
Block a user