| | |
| | | order_no_index_map[int(d[10])] = i |
| | | order_no_indexes = [(k, order_no_index_map[k]) for k in order_no_index_map] |
| | | order_no_indexes.sort(key=lambda x: x[0]) |
| | | |
| | | if sell_nos: |
| | | for sell_info in sell_nos: |
| | | if sell_info[1] * sell_info[2] < 50 * 10000: |
| | | continue |
| | | for i in range(len(order_no_indexes) - 1): |
| | | if order_no_indexes[i][0] < sell_info[0] < order_no_indexes[i + 1][0]: |
| | | item = [] |
| | | item.append(order_no_indexes[i + 1][1]) |
| | | item.append(l2_huaxin_util.convert_time(sell_info[3][0], with_ms=True)) |
| | | item.append("") |
| | | item.append( |
| | | "{}万".format(round(sell_info[1] * sell_info[2] / 10000, 1))) |
| | | item.append(sell_info[2]) |
| | | item.append(sell_info[1] // 100) |
| | | item.append("主动卖") |
| | | item.append(1) |
| | | item.append(l2_huaxin_util.convert_time(sell_info[4][0], with_ms=True)) |
| | | item.append(None) |
| | | item.append(sell_info[0]) |
| | | fdatas.insert(order_no_indexes[i + 1][1], (0, None, item)) |
| | | break |
| | | # 不添加主动卖数据 |
| | | # if sell_nos: |
| | | # for sell_info in sell_nos: |
| | | # if sell_info[1] * sell_info[2] < 50 * 10000: |
| | | # continue |
| | | # for i in range(len(order_no_indexes) - 1): |
| | | # if order_no_indexes[i][0] < sell_info[0] < order_no_indexes[i + 1][0]: |
| | | # item = [] |
| | | # item.append(order_no_indexes[i + 1][1]) |
| | | # item.append(l2_huaxin_util.convert_time(sell_info[3][0], with_ms=True)) |
| | | # item.append("") |
| | | # item.append( |
| | | # "{}万".format(round(sell_info[1] * sell_info[2] / 10000, 1))) |
| | | # item.append(sell_info[2]) |
| | | # item.append(sell_info[1] // 100) |
| | | # item.append("主动卖") |
| | | # item.append(1) |
| | | # item.append(l2_huaxin_util.convert_time(sell_info[4][0], with_ms=True)) |
| | | # item.append(None) |
| | | # item.append(sell_info[0]) |
| | | # fdatas.insert(order_no_indexes[i + 1][1], (0, None, item)) |
| | | # break |
| | | |
| | | return fdatas |
| | | |