| | |
| | | # 设置成交进度 |
| | | def set_transaction_index(self, code, buy_single_index, index): |
| | | try: |
| | | # 每3s或者成交进度变化就囊括一次 |
| | | if index == self.__transaction_progress_index_dict.get(code): |
| | | if code in self.__transaction_progress_index_updatetime_dict and time.time() - self.__transaction_progress_index_updatetime_dict.get( |
| | | code) < 3: |
| | |
| | | if temp_rate > 3: |
| | | temp_rate = 3 |
| | | deal_rate = round((temp_rate * 3.5 - 2.5) / 100, 4) if is_up else round( |
| | | (temp_rate * 10.5 - 7.5) / 100, 4) |
| | | (temp_rate * 5.25 - 3.75) / 100, 4) |
| | | |
| | | base_rate += block_rate |
| | | base_rate += deal_rate |