| | |
| | | import xmdapi |
| | | from huaxin_client import tool, constant |
| | | from log_module.log import logger_system, logger_local_huaxin_l1, logger_l2_codes_subscript |
| | | from utils import tool as out_tool |
| | | |
| | | ################B类################## |
| | | ADDRESS = "udp://224.224.1.19:7880" |
| | |
| | | return |
| | | if pMarketDataField.SecurityName.find("ST") >= 0: |
| | | return |
| | | close_price = round(pMarketDataField.UpperLimitPrice / 1.1, 2) |
| | | close_price = round(pMarketDataField.UpperLimitPrice / out_tool.get_limit_up_rate(pMarketDataField.SecurityID), 2) |
| | | rate = round((pMarketDataField.LastPrice - close_price) * 100 / close_price, 2) |
| | | # print(pMarketDataField.SecurityID, pMarketDataField.SecurityName, rate, pMarketDataField.Volume) |
| | | |