2.41K 浏览
0

while (near_finished < target_acco) & (spread < pingduo_fazhi):
        print('循环开始')
        api.wait_update()
        if api.is_changing(quote_near) | api.is_changing(quote_far):
            print(1111)
            spread = quote_near.last_price - quote_far.last_price
             #print("当前价差:", spread)
            #print('循环开始手术',near_finished)
            #print('计数开始前远期计数开关:',far_finished)
        if far_kaiguan_count:
            print(2222)
            #print('计数开始前远期计数开关:', far_finished)
            print(order_far.status)
            if (order_far.status == 'FINISHED'):
                print(2222_111)
                far_finished = far_finished + 1
                far_kaiguan_count = False
                near_kaiguan_trade = True

leo zhang 问的问题 2019年11月26日