| | |
| | | |
| | | price = transaction_datas[-1][1] |
| | | huaxin_timestamp = transaction_datas[-1][3] |
| | | # 处于涨停卖的委托订单量 |
| | | # 处于涨停卖的委托订单总手数 |
| | | selling_num = L2LimitUpSellDataManager.get_delegating_sell_num(code) |
| | | if selling_num: |
| | | if selling_num is None: |
| | | selling_num = 0 |
| | | if selling_num is not None: |
| | | # 总卖 = 主动成交的累计金额 + 处于委托状态的涨停卖金额 |
| | | total_sell = __deal_active_buy_total_money[code] + selling_num * price |
| | | if total_sell == 0: |
| | | total_sell = 1 |
| | | rate = round(__deal_active_buy_total_money[code] / total_sell, 2) |
| | | # 获取当前的成交量比 |
| | | limit_up_price = gpcode_manager.get_limit_up_price_as_num(code) |