| | |
| | | max60, yesterday = get_histry_volumn(code) |
| | | if today is None: |
| | | today = 0 |
| | | if today is None or max60 is None or yesterday is None: |
| | | if max60 is None or yesterday is None: |
| | | max60 = [today, ''] |
| | | yesterday = today |
| | | if max60[0] < 1: |
| | | max60[0] = 1 |
| | | |
| | | raise Exception(f"获取量失败:{code}") |
| | | rate = round((int(today) + total_sell_volume) / max(int(max60[0]), int(yesterday)), 2) |
| | | if not with_info: |
| | |
| | | ########华鑫配置######## |
| | | if not is_windows() or True: |
| | | # 下单1手 |
| | | BUY_MONEY_PER_CODE = 500 if constant.IS_A else 2000 |
| | | BUY_MONEY_PER_CODE = 500 if constant.IS_A else 10000 |
| | | L2_SOURCE_TYPE = L2_SOURCE_TYPE_HUAXIN |
| | | JUEJIN_LOCAL_API = False |
| | | TRADE_WAY = TRADE_WAY_HUAXIN |
| | |
| | | |
| | | if zyltgb_as_yi < zylt_threshold_as_yi[0]: |
| | | return False, True, f"{zylt_threshold_as_yi[0]}亿以下的都不买({zyltgb_as_yi})" |
| | | |
| | | if 1 > 0: |
| | | return True, False, "买所有" |
| | | # 测试时可取消注释 |
| | | # if 1 > 0: |
| | | # return True, False, "买所有" |
| | | |
| | | if zyltgb_as_yi >= zylt_threshold_as_yi[1]: |
| | | return False, True, f"{zylt_threshold_as_yi[1]}亿以上的都不买({zyltgb_as_yi})" |