init
This commit is contained in:
@@ -209,10 +209,10 @@ class HTS:
|
||||
orderNum = objStockOrder.GetHeaderValue(0)
|
||||
|
||||
if (type == "1"):
|
||||
self.bot.post(stock_code, stock_code, "SELL", price, count)
|
||||
self.bot.post(stock_code, stock_code, "SELL", price, count, 0)
|
||||
print ("(SELL", count, price, ")")
|
||||
else:
|
||||
self.bot.post(stock_code, stock_code, "BUY", price, count)
|
||||
self.bot.post(stock_code, stock_code, "BUY", price, count, 0)
|
||||
print ("(BUY", count, price, ")")
|
||||
return orderNum
|
||||
|
||||
|
||||
Reference in New Issue
Block a user