def query_transactions(self, initial_date, final_date,<EOL>page=None,<EOL>max_results=None):
last_page = False<EOL>results = []<EOL>while last_page is False:<EOL><INDENT>search_result = self._consume_query_transactions(<EOL>initial_date, final_date, page, max_results)<EOL>results.extend(search_result.transactions)<EOL>if search_result.current_page is None orsearch_result.total_pages is None orsearch_result.current_page == search_result.total_pages:<EOL><INDENT>last_page = True<EOL><DEDENT>else:<EOL><INDENT>page = search_result.current_page + <NUM_LIT:1><EOL><DEDENT><DEDENT>return results<EOL>
query transaction by date range