| | |
| | | |
| | | # mode: 0-普通交易 1-快速交易 |
| | | def __init__(self, buy_single_index=None, buy_exec_index=-1, buy_compute_index=None, num=0, count=0, |
| | | max_num_set=None, buy_volume_rate=None, sell_info=None, threshold_money=None, mode=0): |
| | | max_num_set=None, buy_volume_rate=None, sell_info=None, threshold_money=None, mode=0, |
| | | at_limit_up=False): |
| | | self.buy_single_index = buy_single_index |
| | | self.buy_exec_index = buy_exec_index |
| | | self.buy_compute_index = buy_compute_index |
| | |
| | | self.buy_volume_rate = buy_volume_rate |
| | | self.sell_info = sell_info |
| | | self.mode = mode |
| | | # 是否是板上买 |
| | | self.at_limit_up = at_limit_up |
| | | |
| | | def get_max_num_set(self): |
| | | if self.max_num_set: |
| | |
| | | buy_volume_rate=0.6, |
| | | mode=OrderBeginPosInfo.MODE_NORMAL, |
| | | )) |
| | | print( TradePointManager().get_buy_compute_start_data_cache(code).max_num_set) |
| | | print(TradePointManager().get_buy_compute_start_data_cache(code).max_num_set) |
| | | RedisUtils.run_loop() |