This commit is contained in:
dsyoon
2023-01-21 19:47:15 +09:00
parent d18629ec8e
commit 4615cb1620

View File

@@ -446,7 +446,7 @@ class Bithumb(HTS):
if len(data.index) > 10:
today = datetime.today().strftime('%Y%m%d')
log_filename = os.path.join(RESOURCE_PATH, 'analysis', 'bithumb', today + '.log')
if not isRealTime and self.exist_buy(ticker, log_filename):
if not isRealTime and not self.exist_buy(ticker, log_filename):
if max(bsLine['buy'][len(bsLine['buy']) - 2:]) > 100:
balance = self.getBalance(ticker)
count = int(balance * (bsLine['buy_weight'][len(bsLine['buy_weight'])-1]/100))