| | |
| | | |
| | | # 获取最近成交数据 |
| | | @classmethod |
| | | def get_latest_transaction_datas(cls, code, min_sell_order_no=None, min_deal_time=None): |
| | | def get_latest_transaction_datas(cls, code, min_sell_order_no=None, min_deal_time=None, min_sell_money=None): |
| | | """ |
| | | 获取最近的主动卖成交信息 |
| | | @param code: |
| | | @param min_sell_order_no: |
| | | @param min_deal_time: |
| | | @param min_sell_money: |
| | | @return: |
| | | """ |
| | | total_orders = [] |
| | | sell_orders = cls.__latest_all_sell_orders_dict.get(code) |
| | | if sell_orders: |
| | |
| | | |
| | | if min_sell_order_no and min_sell_order_no > sell_orders[i][0]: |
| | | continue |
| | | if min_sell_money and sell_orders[i][1] * sell_orders[i][2] < min_sell_money: |
| | | # 过滤小金额 |
| | | continue |
| | | |
| | | total_orders.append(sell_orders[i]) |
| | | if code in cls.__latest_sell_order_dict: |
| | | if min_sell_order_no: |