From ab565562c9f7a66b6ca77757a14c2f008f896dd5 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Sun, 29 Jan 2023 03:11:32 +0900 Subject: [PATCH] init --- Bithumb_minute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bithumb_minute.py b/Bithumb_minute.py index ef68a20..9bad3e1 100644 --- a/Bithumb_minute.py +++ b/Bithumb_minute.py @@ -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)