This commit is contained in:
dsyoon
2023-01-29 03:11:32 +09:00
parent b1d8beaf34
commit ab565562c9

View File

@@ -625,7 +625,7 @@ class Bithumb_minute(HTS):
tmp = self.bithumb.get_balance(ticker)
balance = tmp[2]
#count = round((balance * (bsLine['buy_weight'][len(bsLine['buy_weight']) - 1] / 100)) / bsLine['buy'][len(bsLine['buy']) - 1], 2)
count = round(self.MAX_BUY_PRICE / bsLine['buy'][len(bsLine['buy']) - 1], 2)
count = int(self.MAX_BUY_PRICE / bsLine['buy'][len(bsLine['buy']) - 1])
# 매수를 요청한다.
order = self.bithumb.buy_limit_order(ticker, bsLine['buy'][len(bsLine['buy']) - 1], count)