| | |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | previous_trading_date = history_k_data_util.HistoryKDatasUtils.get_previous_trading_date(tool.get_now_date_str()) |
| | | if history_k_data_util.HistoryKDatasUtils.get_next_trading_date(previous_trading_date) != tool.get_now_date_str(): |
| | | print("非交易日") |
| | | else: |
| | | print("交易日") |
| | | # previous_trading_date = history_k_data_util.HistoryKDatasUtils.get_previous_trading_date(tool.get_now_date_str()) |
| | | # if history_k_data_util.HistoryKDatasUtils.get_next_trading_date(previous_trading_date) != tool.get_now_date_str(): |
| | | # print("非交易日") |
| | | # else: |
| | | # print("交易日") |
| | | # zylt = kpl_api.getZYLTAmount("000333") |
| | | # print(zylt) |
| | | update_all_zylt_volumes() |
| | | input() |
| | |
| | | @classmethod |
| | | def get_next_trading_date(cls, date): |
| | | # return JueJinApi.get_next_trading_date(date) |
| | | if constant.is_windows(): |
| | | return JueJinApi.get_next_trading_date(date) |
| | | else: |
| | | return hx_qc_value_util.get_next_trading_date(date) |
| | | |
| | | @classmethod |