Fix asset_group reference
This commit is contained in:
parent
f4ae8fbc5f
commit
74fdd8a735
|
@ -333,15 +333,15 @@ def execute_strategy(callback, strategy, func):
|
|||
# Callback now verified
|
||||
|
||||
# Check against the asset groups
|
||||
if func == "entry" and strategy.assetgroup is not None:
|
||||
allowed = assetfilter.get_allowed(strategy, base, quote, direction)
|
||||
if func == "entry" and strategy.asset_group is not None:
|
||||
allowed = assetfilter.get_allowed(strategy.asset_group, base, quote, direction)
|
||||
if not allowed:
|
||||
log.debug(
|
||||
f"Denied trading {symbol} due to asset filter {strategy.assetgroup}"
|
||||
f"Denied trading {symbol} due to asset filter {strategy.asset_group}"
|
||||
)
|
||||
sendmsg(
|
||||
user,
|
||||
f"Denied trading {symbol} due to asset filter {strategy.assetgroup}",
|
||||
f"Denied trading {symbol} due to asset filter {strategy.asset_group}",
|
||||
title="Asset filter denied",
|
||||
)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue