init
This commit is contained in:
@@ -625,7 +625,7 @@ class Bithumb_minute(HTS):
|
|||||||
tmp = self.bithumb.get_balance(ticker)
|
tmp = self.bithumb.get_balance(ticker)
|
||||||
balance = tmp[2]
|
balance = tmp[2]
|
||||||
#count = round((balance * (bsLine['buy_weight'][len(bsLine['buy_weight']) - 1] / 100)) / bsLine['buy'][len(bsLine['buy']) - 1], 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)
|
order = self.bithumb.buy_limit_order(ticker, bsLine['buy'][len(bsLine['buy']) - 1], count)
|
||||||
|
|||||||
Reference in New Issue
Block a user