Return a copy from current_whitelist
this avoids manipulating of the pair whitelist from within a strategy
This commit is contained in:
@@ -170,6 +170,6 @@ class DataProvider:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if self._pairlists:
|
if self._pairlists:
|
||||||
return self._pairlists.whitelist
|
return self._pairlists.whitelist.copy()
|
||||||
else:
|
else:
|
||||||
raise OperationalException("Dataprovider was not initialized with a pairlist provider.")
|
raise OperationalException("Dataprovider was not initialized with a pairlist provider.")
|
||||||
|
Reference in New Issue
Block a user