code: def QA_SU_save_deal(dealist, client=DATABASE):
      
  
      if isinstance(dealist, pd.DataFrame):
  
          collection = client.deal
  
          collection.create_index(
              [('account_cookie',
                ASCENDING),
               ('trade_id',
                ASCENDING)],
              unique=True
          )
          try:
              dealist = QA_util_to_json_from_pandas(dealist.reset_index())
              collection.insert_many(dealist, ordered=False)
          except Exception as e:
  
              pass
docs: 存储order_handler的deal_status
  
      Arguments:
          dealist {[dataframe]} -- [description]
  
      Keyword Arguments:
          client {[type]} -- [description] (default: {DATABASE})