init
This commit is contained in:
@@ -446,7 +446,7 @@ class Bithumb(HTS):
|
|||||||
if len(data.index) > 10:
|
if len(data.index) > 10:
|
||||||
today = datetime.today().strftime('%Y%m%d')
|
today = datetime.today().strftime('%Y%m%d')
|
||||||
log_filename = os.path.join(RESOURCE_PATH, 'analysis', 'bithumb', today + '.log')
|
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:
|
if max(bsLine['buy'][len(bsLine['buy']) - 2:]) > 100:
|
||||||
balance = self.getBalance(ticker)
|
balance = self.getBalance(ticker)
|
||||||
count = int(balance * (bsLine['buy_weight'][len(bsLine['buy_weight'])-1]/100))
|
count = int(balance * (bsLine['buy_weight'][len(bsLine['buy_weight'])-1]/100))
|
||||||
|
|||||||
Reference in New Issue
Block a user