| | |
| | | import psutil |
| | | import requests |
| | | |
| | | from api import low_suction_data_pusher |
| | | from code_attribute import global_data_loader |
| | | from huaxin_client import l2_client_test, l1_subscript_codes_manager |
| | | from log_module.log import logger_local_huaxin_l2_transaction_big_order, logger_system, \ |
| | |
| | | if k_bars and 10e8 <= k_bars[0]["close"] * volume * tool.get_limit_up_rate(code) <= 300e8: |
| | | # 自由流通市值在10亿-300亿以上 |
| | | limit_up_price = round(tool.get_limit_up_rate(code) * k_bars[0]["close"], 2) |
| | | if limit_up_price > k_bars[0]["high"]: |
| | | if limit_up_price > k_bars[0]["high"] or True: |
| | | # 今日涨停价要突破昨日最高价 |
| | | codes.add(code) |
| | | # 获取辨识度的票 |
| | |
| | | def __save_accurate_big_order(big_accurate_order_queue): |
| | | while True: |
| | | try: |
| | | data = big_accurate_order_queue.get() |
| | | logger_local_huaxin_l2_transaction_accurate_big_order.info(f"{data}") |
| | | datas = [] |
| | | while not big_accurate_order_queue.empty(): |
| | | data = big_accurate_order_queue.get() |
| | | datas.append(data) |
| | | if datas: |
| | | low_suction_data_pusher.push_big_order(datas) |
| | | for data in datas: |
| | | logger_local_huaxin_l2_transaction_accurate_big_order.info(f"{data}") |
| | | except: |
| | | pass |
| | | |
| | |
| | | __upload_data("jingxuan_rank", json.dumps(fins)) |
| | | __upload_data("jingxuan_rank_out", json.dumps(fouts)) |
| | | __upload_codes_in_money() |
| | | try: |
| | | low_suction_data_pusher.push_block_in(in_list) |
| | | except: |
| | | pass |
| | | except Exception as e: |
| | | logging.exception(e) |
| | | finally: |