Skip to content

Commit

Permalink
#update
Browse files Browse the repository at this point in the history
  • Loading branch information
yutiansut committed Oct 5, 2018
1 parent 693cf1c commit 649c324
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions QUANTAXIS_Test/QAUtil_Test/QADate_trade_Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@
class Test_QA_Date_trade(unittest.TestCase):
def test_QA_util_if_trade(self):

now = QADate.QA_util_time_now()
str_from_today = '%04d-%02d-%02d' % (now.year, now.month, now.day)

#str_from_today = '%04d-%02d-%02d' % (now.year, now.month, now.day)
str_from_today=str(datetime.date.today())
nDayLeft = 1000
while nDayLeft > 0:

toDayIsTradeDay = QADate_trade.QA_util_if_trade(str_from_today)
realTradeDay = QADate_trade.QA_util_get_real_date(str_from_today)

QADate.QA_util_date_valid(realTradeDay)
QADate.QA_util_date_valid(realTradeDWWWay)

if toDayIsTradeDay == False:
prev_trade_day = QADate_trade.QA_util_get_last_day(
Expand Down

0 comments on commit 649c324

Please sign in to comment.