init
This commit is contained in:
@@ -549,7 +549,7 @@ class HTS_252670:
|
|||||||
|
|
||||||
def buyRealTime(self, GIVEN_DAY):
|
def buyRealTime(self, GIVEN_DAY):
|
||||||
orderChecker = OrderChecker(self.stock_code)
|
orderChecker = OrderChecker(self.stock_code)
|
||||||
BASE_COUNT = 200
|
BASE_COUNT = 40
|
||||||
|
|
||||||
timecheckList = pd.read_csv("timecheck.csv").values.tolist()
|
timecheckList = pd.read_csv("timecheck.csv").values.tolist()
|
||||||
timecheck = {GIVEN_DAY + " " + str(second).zfill(6):False for second, check in timecheckList}
|
timecheck = {GIVEN_DAY + " " + str(second).zfill(6):False for second, check in timecheckList}
|
||||||
@@ -660,7 +660,7 @@ if __name__ == "__main__":
|
|||||||
hts = HTS_252670(stock_code)
|
hts = HTS_252670(stock_code)
|
||||||
given_day = datetime.today().strftime('%Y%m%d')
|
given_day = datetime.today().strftime('%Y%m%d')
|
||||||
|
|
||||||
#hts.writeStockData(stock_code, "20220128")
|
#hts.writeStockData(stock_code, "20220421")
|
||||||
hts.buyRealTime(given_day)
|
hts.buyRealTime(given_day)
|
||||||
|
|
||||||
print ("done...")
|
print ("done...")
|
||||||
|
|||||||
Reference in New Issue
Block a user