| | |
| | | # -*- coding: utf-8 -*- |
| | | import decimal |
| | | import json |
| | | import logging |
| | | import multiprocessing |
| | |
| | | # (pDepthMarketData['AskPrice5'], pDepthMarketData['AskVolume5']) |
| | | # ] |
| | | } |
| | | huaxin_l2_log.info(logger_local_huaxin_l2_market, f"{d}") |
| | | # 获取是否涨停价 |
| | | limit_up_price = float( |
| | | tool.to_price(decimal.Decimal(str(pDepthMarketData['PreClosePrice'])) * decimal.Decimal("1.1"))) |
| | | if abs(limit_up_price - pDepthMarketData['LastPrice']) < 0.001 or abs( |
| | | limit_up_price - pDepthMarketData['BidPrice1']) < 0.001: |
| | | huaxin_l2_log.info(logger_local_huaxin_l2_market, f"{d}") |
| | | except: |
| | | pass |
| | | |