nodes: 0, module; 1, function_definition; 2, function_name:list_current_orders; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, default_parameter; 12, default_parameter; 13, default_parameter; 14, default_parameter; 15, default_parameter; 16, default_parameter; 17, default_parameter; 18, expression_statement; 19, expression_statement; 20, expression_statement; 21, expression_statement; 22, return_statement; 23, identifier:bet_ids; 24, None; 25, identifier:market_ids; 26, None; 27, identifier:order_projection; 28, None; 29, identifier:customer_order_refs; 30, None; 31, identifier:customer_strategy_refs; 32, None; 33, identifier:date_range; 34, call; 35, identifier:order_by; 36, None; 37, identifier:sort_dir; 38, None; 39, identifier:from_record; 40, None; 41, identifier:record_count; 42, None; 43, identifier:session; 44, None; 45, identifier:lightweight; 46, None; 47, comment:"""
          Returns a list of your current orders.
  
          :param list bet_ids: If you ask for orders, restricts the results to orders with the specified bet IDs
          :param list market_ids: One or more market ids
          :param str order_projection: Optionally restricts the results to the specified order status
          :param list customer_order_refs: Optionally restricts the results to the specified customer order references
          :param list customer_strategy_refs: Optionally restricts the results to the specified customer strategy
          references
          :param dict date_range: Optionally restricts the results to be from/to the specified date, these dates
          are contextual to the orders being returned and therefore the dates used to filter on will change
          to placed, matched, voided or settled dates depending on the orderBy
          :param str order_by: Specifies how the results will be ordered. If no value is passed in, it defaults to BY_BET
          :param str sort_dir: Specifies the direction the results will be sorted in
          :param int from_record: Specifies the first record that will be returned
          :param int record_count: Specifies how many records will be returned from the index position 'fromRecord'
          :param requests.session session: Requests session object
          :param bool lightweight: If True will return dict not a resource
  
          :rtype: resources.CurrentOrders
          """; 48, assignment; 49, assignment; 50, assignment; 51, call; 52, identifier:time_range; 53, argument_list; 54, identifier:params; 55, call; 56, identifier:method; 57, binary_operator:'%s%s' % (self.URI, 'listCurrentOrders'); 58, tuple_pattern; 59, call; 60, attribute; 61, argument_list; 62, identifier:clean_locals; 63, argument_list; 64, string; 65, tuple; 66, identifier:response; 67, identifier:elapsed_time; 68, attribute; 69, argument_list; 70, identifier:self; 71, identifier:process_response; 72, identifier:response; 73, attribute; 74, identifier:elapsed_time; 75, identifier:lightweight; 76, call; 77, string_content:%s%s; 78, attribute; 79, string; 80, identifier:self; 81, identifier:request; 82, identifier:method; 83, identifier:params; 84, identifier:session; 85, identifier:resources; 86, identifier:CurrentOrders; 87, identifier:locals; 88, argument_list; 89, identifier:self; 90, identifier:URI; 91, string_content:listCurrentOrders
code: def list_current_orders(self, bet_ids=None, market_ids=None, order_projection=None, customer_order_refs=None,
                              customer_strategy_refs=None, date_range=time_range(), order_by=None, sort_dir=None,
                              from_record=None, record_count=None, session=None, lightweight=None):
          """
          Returns a list of your current orders.
  
          :param list bet_ids: If you ask for orders, restricts the results to orders with the specified bet IDs
          :param list market_ids: One or more market ids
          :param str order_projection: Optionally restricts the results to the specified order status
          :param list customer_order_refs: Optionally restricts the results to the specified customer order references
          :param list customer_strategy_refs: Optionally restricts the results to the specified customer strategy
          references
          :param dict date_range: Optionally restricts the results to be from/to the specified date, these dates
          are contextual to the orders being returned and therefore the dates used to filter on will change
          to placed, matched, voided or settled dates depending on the orderBy
          :param str order_by: Specifies how the results will be ordered. If no value is passed in, it defaults to BY_BET
          :param str sort_dir: Specifies the direction the results will be sorted in
          :param int from_record: Specifies the first record that will be returned
          :param int record_count: Specifies how many records will be returned from the index position 'fromRecord'
          :param requests.session session: Requests session object
          :param bool lightweight: If True will return dict not a resource
  
          :rtype: resources.CurrentOrders
          """
          params = clean_locals(locals())
          method = '%s%s' % (self.URI, 'listCurrentOrders')
          (response, elapsed_time) = self.request(method, params, session)
          return self.process_response(response, resources.CurrentOrders, elapsed_time, lightweight)