This commit is contained in:
dsyoon
2023-01-22 12:20:52 +09:00
parent c1b84e435b
commit 72a10e61c1
2 changed files with 7 additions and 0 deletions

View File

@@ -604,6 +604,9 @@ class Bithumb_daily(HTS):
stock = {"CODE": ticker, "NAME": ticker, "PRICE": []}
df = pybithumb.get_ohlcv(ticker)
if df is None:
return
close = pybithumb.get_current_price(ticker)
size = len(df)

View File

@@ -675,6 +675,8 @@ class Bithumb_minute(HTS):
"""
df = self.get_ohlcv(ticker)
if df is None:
return
close = pybithumb.get_current_price(ticker)
size = len(df)
@@ -717,6 +719,8 @@ class Bithumb_minute(HTS):
if max(bsLine['sell'][len(bsLine['sell']) - 2:]) > 100:
tmp = self.bithumb.get_balance(ticker)
if tmp is None:
return
count = tmp[0]
order = self.bithumb.sell_limit_order(ticker, bsLine['sell'][len(bsLine['sell'])-1], count)