| | |
| | | # 引入瞬时分时行情模块 |
| | | # 引入账户管理模块【进行资金和仓位管理】 |
| | | from strategy import kpl_api, data_cache, check_timer, all_K_line, instant_time_market, account_management, \ |
| | | order_methods, local_data_management, kpl_data_manager, market_sentiment_analysis, plate_strength_analysis |
| | | order_methods, local_data_management, kpl_data_manager, market_sentiment_analysis, plate_strength_analysis, \ |
| | | selling_strategy |
| | | from huaxin_client import l2_market_client, l2_client |
| | | from log_module import async_log_util |
| | | from trade import huaxin_trade_data_update, huaxin_trade_api |
| | |
| | | if code in self.__last_price_dict: |
| | | if abs(limit_up_price - self.__last_price_dict[code]) < 0.0001 < abs(limit_up_price - price): |
| | | # TODO 处理炸板逻辑 |
| | | |
| | | # 炸板 |
| | | logger_debug.info(f"炸板:{code}-({price},{time_str})") |
| | | # 监听了炸板了要做的函数 |
| | | try: |
| | | selling_strategy.explosion_strategy(code) |
| | | # 炸板s |
| | | finally: |
| | | logger_debug.info(f"炸板:{code}-({price},{time_str})") |
| | | finally: |
| | | self.__last_price_dict[code] = price |
| | | |