| | |
| | | if limit_up_price: |
| | | money_y = round((num * float(limit_up_price)) / 1e8, 1) |
| | | money = int(200 * money_y + 280) |
| | | if tool.trade_time_sub(place_order_time_str,"10:00:00") <= 0: |
| | | if tool.trade_time_sub(place_order_time_str, "10:00:00") <= 0: |
| | | # 10点前下单打7折 |
| | | money = int(money*0.7) |
| | | money = int(money * 0.7) |
| | | count = int(money_y * 10) // 10 + 3 |
| | | return money, count |
| | | # 默认值 |
| | |
| | | if tool.trade_time_sub(tool.get_now_time_str(), total_datas[real_order_index]['val']['time']) > 1 * 60: |
| | | return False, "下单超过60s" |
| | | |
| | | THRESHOLD_MONEY_W, THRESHOLD_COUNT = self.__get_fast_deal_threshold_value(code) |
| | | THRESHOLD_MONEY_W, THRESHOLD_COUNT = self.__get_fast_deal_threshold_value(code, total_datas[real_order_index]['val']['time']) |
| | | |
| | | total_left_count = 0 |
| | | total_left_num = 0 |