| | |
| | | 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%" |
| | |
| | | except: |
| | | pass |
| | | # L后囊括快照 |
| | | current_info = LCancelBigNumComputer().statistic_l_down_watch_indexes_info(code) |
| | | last_info = LDownCancelWatchIndexStatisticManager().get_statistic_info(code) |
| | | fdata['l_down_watch_indexes_info'] = {} |
| | | if current_info: |
| | | fdata['l_down_watch_indexes_info']['current'] = current_info |
| | | if last_info: |
| | | fdata['l_down_watch_indexes_info']['last'] = last_info |
| | | try: |
| | | current_info = LCancelBigNumComputer().statistic_l_down_watch_indexes_info(code) |
| | | last_info = LDownCancelWatchIndexStatisticManager().get_statistic_info(code) |
| | | fdata['l_down_watch_indexes_info'] = {} |
| | | if current_info: |
| | | fdata['l_down_watch_indexes_info']['current'] = current_info |
| | | if last_info: |
| | | fdata['l_down_watch_indexes_info']['last'] = last_info |
| | | except: |
| | | pass |
| | | fdatas.append(fdata) |
| | | except Exception as e: |
| | | logger_debug.exception(e) |
| | |
| | | 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) |