Return a copy from current_whitelist

this avoids manipulating of the pair whitelist from within a strategy
This commit is contained in:
Matthias 2021-04-13 06:49:53 +02:00
parent 4b902d6eb8
commit 9b23be4021

View File

@ -170,6 +170,6 @@ class DataProvider:
"""
if self._pairlists:
return self._pairlists.whitelist
return self._pairlists.whitelist.copy()
else:
raise OperationalException("Dataprovider was not initialized with a pairlist provider.")