| | |
| | | import json |
| | | import logging |
| | | import os |
| | | import threading |
| | | import time |
| | |
| | | |
| | | def get_limit_up(): |
| | | while True: |
| | | if tool.is_trade_time() or True: |
| | | if tool.is_trade_time(): |
| | | try: |
| | | results = kpl_api.daBanList(kpl_api.DABAN_TYPE_LIMIT_UP) |
| | | results = kpl_api.getLimitUpInfo() |
| | | result = json.loads(results) |
| | | start_time = time.time() |
| | | __upload_data("limit_up", result) |
| | | logger_kpl_limit_up_reason_change.info("上传耗时:{}", time.time() - start_time) |
| | | except Exception as e: |
| | | pass |
| | | logging.exception(e) |
| | | time.sleep(3) |
| | | |
| | | def get_bidding_money(): |