| | |
| | | expire_rate = "未知" |
| | | try: |
| | | referer_volume = code_volumn_manager.CodeVolumeManager().get_radical_buy_refer_volume( |
| | | code, limit_up_price) |
| | | code, float(limit_up_price)) |
| | | today_volumn = code_volumn_manager.CodeVolumeManager().get_today_volumn_cache(code) |
| | | if referer_volume == today_volumn: |
| | | expire_rate = "100%" |
| | |
| | | request_id) |
| | | return |
| | | rate = round(rate, 2) |
| | | |
| | | old_rate = LCancelRateManager().get_cancel_rate(0)[0] |
| | | # L后数据快照 |
| | | last_info = LCancelBigNumComputer().statistic_l_down_watch_indexes_info(code) |
| | | LDownCancelWatchIndexStatisticManager().set_statistic_info(code, last_info) |
| | | CancelRateHumanSettingManager().set_l_down(code, rate) |
| | | # L后重新囊括 |
| | | LCancelBigNumComputer().re_compute_l_down_watch_indexes(code) |
| | | if rate < old_rate: |
| | | # 改小才能重新囊括 |
| | | LCancelBigNumComputer().re_compute_l_down_watch_indexes(code) |
| | | self.send_response({"code": 0, "data": {}}, |
| | | client_id, |
| | | request_id) |