| | |
| | | # item逐笔委托 |
| | | # (data['SecurityID'], data['Price'], data['Volume'], data['Side'], data['OrderType'], |
| | | # data['OrderTime'],data['MainSeq'], data['SubSeq'], data['OrderNO'], data['OrderStatus']) |
| | | from utils import tool |
| | | |
| | | |
| | | def convert_time(time_str, with_ms=False): |
| | |
| | | if price <= 0: |
| | | # 深证的买撤无价格数据,需要去查找价格数据,暂时设置为涨停价 |
| | | price = limit_up_price |
| | | |
| | | |
| | | limitPrice = 1 if abs(limit_up_price - price) < 0.001 else 0 |
| | | operateType = 0 |
| | |
| | | """ |
| | | |
| | | # 先转变数据格式 |
| | | datas = [__convert_order(x, float(limit_up_price)) for x in origin_datas] |
| | | datas = [] |
| | | is_sz = tool.is_sz_code(code) |
| | | for x in origin_datas: |
| | | if is_sz and int(x[4]) == 1: |
| | | continue |
| | | datas.append(__convert_order(x, float(limit_up_price))) |
| | | # 在9:25之前不过滤非涨停金额 |
| | | # filter_not_limit_up = True |
| | | # if int(datas[0]["time"][:5].replace(":", "")) <= 925: |