def get_allowed(strategy, symbol, direction): """ Determine whether the trade is allowed according to the Asset Groups linked to the strategy. """ # asset_group = strategy.