This commit is contained in:
dsyoon
2023-01-23 17:27:01 +09:00
parent 70bd799b92
commit b78d65fb53
2 changed files with 32 additions and 28 deletions

View File

@@ -629,6 +629,8 @@ class Bithumb_daily(HTS):
if len(data.index) > 10:
today = datetime.today().strftime('%Y%m%d')
log_filename = os.path.join(RESOURCE_PATH, 'analysis', '', today + '.log')
# realtime이고, 5분이내 매수 기록이 없다면
if isRealTime and not self.exist_buy(ticker, log_filename):
if max(bsLine['buy'][len(bsLine['buy']) - 2:]) > 100:
balance = self.getBalance(ticker)
@@ -672,7 +674,7 @@ if __name__ == "__main__":
except:
time.sleep(30)
continue
time.sleep(300)
time.sleep(10)
else:
for ticker in tickers:
bithumb.buyRealTime(ticker, analyzed_day, isRealTime)