def display_tns(self):
    '显示事务的过程记录=》 log'
    if (not self.inited):
        return
    self.write_log(u'{} 当前指数{}价格:{},当前主力{}价格：{}'.format(self.cur_datetime, self.idx_symbol, self.cur_99_price, self.vt_symbol, self.cur_mi_price))
    if hasattr(self, 'policy'):
        policy = getattr(self, 'policy')
        op = getattr(policy, 'to_json', None)
        if callable(op):
            self.write_log(u'当前Policy:{}'.format(policy.to_json()))
显示事务的过程记录=》 log
def display_tns(self):
    
    if (not self.inited):
        return
    self.write_log(u'{} 当前指数{}价格:{},当前主力{}价格：{}'.format(self.cur_datetime, self.idx_symbol, self.cur_99_price, self.vt_symbol, self.cur_mi_price))
    if hasattr(self, 'policy'):
        policy = getattr(self, 'policy')
        op = getattr(policy, 'to_json', None)
        if callable(op):
            self.write_log(u'当前Policy:{}'.format(policy.to_json()))