| | |
| | | trade_index = 0 |
| | | threshold_before_count = max_count // 2 |
| | | |
| | | fresults = __get_trade_queue(code, real_place_order_index, trade_index - 1,real_place_order_index, threshold_before_count, -1) |
| | | fresults = __get_trade_queue(code, real_place_order_index, trade_index - 1, real_place_order_index, |
| | | threshold_before_count, -1) |
| | | fresults.reverse() |
| | | fresults.extend(__get_trade_queue(code, real_place_order_index+1, total_datas[-1]['index'] + 1, real_place_order_index, max_count - threshold_before_count, 1)) |
| | | fresults.extend( |
| | | __get_trade_queue(code, real_place_order_index + 1, total_datas[-1]['index'] + 1, real_place_order_index, |
| | | max_count - threshold_before_count, 1)) |
| | | return fresults |
| | | |
| | | |
| | |
| | | trade_index = 0 |
| | | # 前面最多取5条数据 |
| | | fresults = [] |
| | | fresults.extend(__get_trade_queue(code, trade_index, total_datas[-1]['index'] + 1,real_place_order_index, max_count, 1)) |
| | | fresults.extend( |
| | | __get_trade_queue(code, trade_index, total_datas[-1]['index'] + 1, real_place_order_index, max_count, 1)) |
| | | return fresults |
| | | |
| | | |
| | | |
| | | |