code: def cancel_orders(self, market_id=None, instructions=None, customer_ref=None, session=None, lightweight=None):
          
          params = clean_locals(locals())
          method = '%s%s' % (self.URI, 'cancelOrders')
          (response, elapsed_time) = self.request(method, params, session)
          return self.process_response(response, resources.CancelOrders, elapsed_time, lightweight)
docs: Cancel all bets OR cancel all bets on a market OR fully or partially
          cancel particular orders on a market.
  
          :param str market_id: If marketId and betId aren't supplied all bets are cancelled
          :param list instructions: All instructions need to be on the same market
          :param str customer_ref: Optional parameter allowing the client to pass a unique
          string (up to 32 chars) that is used to de-dupe mistaken re-submissions
          :param requests.session session: Requests session object
          :param bool lightweight: If True will return dict not a resource
  
          :rtype: resources.CancelOrders