| | |
| | | |
| | | |
| | | def test_sell_order_info(): |
| | | code = "600506" |
| | | code = "003001" |
| | | l2_data_util.load_l2_data(code, force=True) |
| | | date = tool.get_now_date_str() |
| | | data_map = log_export.load_huaxin_transaction_map(date=date) |
| | | datas = data_map.get(code) |
| | | start_print = False |
| | | for i in range(len(datas)): |
| | | d = datas[i] |
| | | if i == 1653: |
| | | print("调试") |
| | | big_sell_order_info = HuaXinSellOrderStatisticManager.add_transaction_datas(code, d) |
| | | big_sell_order_info = HuaXinSellOrderStatisticManager.add_transaction_datas(code, d, buy_exec_index=57) |
| | | if big_sell_order_info[0] < 50 * 10000: |
| | | continue |
| | | print(i, sum([ x[1]*x[2] for x in big_sell_order_info[1]]), big_sell_order_info) |
| | | print(i, sum([x[1] * x[2] for x in big_sell_order_info[1]]), big_sell_order_info) |
| | | |
| | | |
| | | if __name__ == '__main__': |