| | |
| | | if human_rate and human_rate >= 0.7: |
| | | return False, "人为设置撤单比例大于0.7" |
| | | |
| | | volume_rate = code_volumn_manager.CodeVolumeManager().get_volume_rate(code) |
| | | if volume_rate <= 0.4 and tool.trade_time_sub(time_str, total_datas[place_order_index]['val']['time']) <= 6: |
| | | return True, f"量比({volume_rate})<=40%且在挂单6s内,封单额≤4000万" |
| | | # volume_rate = code_volumn_manager.CodeVolumeManager().get_volume_rate(code) |
| | | # if volume_rate <= 0.4 and tool.trade_time_sub(time_str, total_datas[place_order_index]['val']['time']) <= 6: |
| | | # return True, f"量比({volume_rate})<=40%且在挂单6s内,封单额≤4000万" |
| | | |
| | | if 6 < tool.trade_time_sub(time_str, total_datas[place_order_index]['val']['time']): |
| | | return True, f"下单后6s,封单额≤4000万" |
| | | # if 6 < tool.trade_time_sub(time_str, total_datas[place_order_index]['val']['time']): |
| | | return True, f"下单后,封单额≤4000万" |
| | | |
| | | return False, '无撤单条件' |
| | | # return False, '无撤单条件' |
| | | |
| | | |
| | | if __name__ == "__main__": |