init
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user