init
This commit is contained in:
@@ -627,7 +627,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_weight'][len(bsLine['buy_weight']) - 1], 2)
|
count = round(self.MAX_BUY_PRICE / bsLine['buy'][len(bsLine['buy']) - 1], 2)
|
||||||
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)
|
||||||
# order: ('bid', 'BTC', 'C0101000000322993432', 'KRW')
|
# order: ('bid', 'BTC', 'C0101000000322993432', 'KRW')
|
||||||
if len(stock1['close']) > 0:
|
if len(stock1['close']) > 0:
|
||||||
@@ -680,9 +680,9 @@ class Bithumb_minute(HTS):
|
|||||||
|
|
||||||
dirName = os.path.join(RESOURCE_PATH, 'analysis', 'bithumb')
|
dirName = os.path.join(RESOURCE_PATH, 'analysis', 'bithumb')
|
||||||
self.writeFile(dirName, ticker, stock1, bsLine, 'sell')
|
self.writeFile(dirName, ticker, stock1, bsLine, 'sell')
|
||||||
else:
|
#else:
|
||||||
dirName = os.path.join(RESOURCE_PATH, 'analysis', 'bithumb')
|
# dirName = os.path.join(RESOURCE_PATH, 'analysis', 'bithumb')
|
||||||
self.writeFile(dirName, ticker, stock1, bsLine)
|
# self.writeFile(dirName, ticker, stock1, bsLine)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user