init
This commit is contained in:
@@ -412,7 +412,8 @@ class Bithumb(HTS):
|
|||||||
return tmp[2]
|
return tmp[2]
|
||||||
|
|
||||||
def exist_buy(self, ticker, log_filename):
|
def exist_buy(self, ticker, log_filename):
|
||||||
log_file = open('data.csv', 'r', )
|
if os.path.exists(log_filename):
|
||||||
|
log_file = open(log_filename, 'r', )
|
||||||
reader = csv.reader(log_file)
|
reader = csv.reader(log_file)
|
||||||
for line in reader:
|
for line in reader:
|
||||||
if line[2] == ticker:
|
if line[2] == ticker:
|
||||||
|
|||||||
Reference in New Issue
Block a user