Administrator
2023-11-21 d1c9590a5ff8c033aeb851d8a484364a57c43f53
单票金额增加至10000
3个文件已修改
6 ■■■■ 已修改文件
constant.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/cancel_buy_strategy.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/code_price_manager.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
constant.py
@@ -148,7 +148,7 @@
########华鑫配置########
if not is_windows() or True:
    # 下单1手
    BUY_MONEY_PER_CODE = 500 if constant.IS_A else 5000
    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
l2/cancel_buy_strategy.py
@@ -30,7 +30,7 @@
def set_real_place_position(code, index, buy_single_index=None):
    DCancelBigNumComputer().set_real_order_index(code, index)
    # DCancelBigNumComputer().set_real_order_index(code, index)
    SecondCancelBigNumComputer().set_real_place_order_index(code, index)
    LCancelBigNumComputer().set_real_place_order_index(code, index, buy_single_index=buy_single_index)
    HourCancelBigNumComputer().set_real_place_order_index(code, index, buy_single_index)
l2/code_price_manager.py
@@ -122,7 +122,7 @@
    def set_open_limit_up_lowest_price(self, code, price):
        old_price = self.__get_open_limit_up_lowest_price_cache(code)
        if not old_price or float(old_price) - float(price) > 0.001:
        if not old_price or float(old_price) > float(price):
            self.__save_open_limit_up_lowest_price(code, price)
    def get_buy1_price(self, code):