Implement checking direction with assetfilter

This commit is contained in:
2023-02-13 17:47:47 +00:00
parent dcfb963be6
commit 0321aff9d5
4 changed files with 97 additions and 20 deletions

View File

@@ -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}"