mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Import deepcopy specifically
This commit is contained in:
parent
0d4010c38c
commit
af95d56ceb
|
@ -1,9 +1,9 @@
|
|||
"""
|
||||
Freqtrade is the main module of this bot. It contains the class Freqtrade()
|
||||
"""
|
||||
import copy
|
||||
import logging
|
||||
import traceback
|
||||
from copy import deepcopy
|
||||
from datetime import datetime, time, timedelta, timezone
|
||||
from math import isclose
|
||||
from threading import Lock
|
||||
|
@ -461,7 +461,7 @@ class FreqtradeBot(LoggingMixin):
|
|||
"""
|
||||
trades_created = 0
|
||||
|
||||
whitelist = copy.deepcopy(self.active_pair_whitelist)
|
||||
whitelist = deepcopy(self.active_pair_whitelist)
|
||||
if not whitelist:
|
||||
self.log_once("Active pair whitelist is empty.", logger.info)
|
||||
return trades_created
|
||||
|
|
Loading…
Reference in New Issue
Block a user