class_docstr: Based on ffn's GroupStats with a few extra helper methods.
  
  Args:
      * backtests (list): List of backtests
  
  Attributes:
      * backtest_list (list): List of bactests in the same order as provided
      * backtests (dict): Dict of backtests by name
class_docstr_tok: ["Based","on","ffn","'s","GroupStats","with","a","few","extra","helper","methods",".","Args",":","*","backtests","(","list",")",":","List","of","backtests","Attributes",":","*","backtest_list","(","list",")",":","List","of","bactests","in","the","same","order","as","provided","*","backtests","(","dict",")",":","Dict","of","backtests","by","name"]
docstr: Helper function that returns the transactions in the following format:
  
      Date, Security | quantity, price
  
  The result is a MultiIndex DataFrame.
  
  Args:
      * strategy_name (str): If none, it will take the first backtest's
        strategy (self.backtest_list[0].name)
docstr_tok: ["Helper","function","that","returns","the","transactions","in","the","following","format",":","Date",",","Security","|","quantity",",","price","The","result","is","a","MultiIndex","DataFrame",".","Args",":","*","strategy_name","(","str",")",":","If","none",",","it","will","take","the","first","backtest's","strategy","(","self.backtest_list","[","0","]",".name",")"]
code: def get_transactions(self, strategy_name=None):
      """
      Helper function that returns the transactions in the following format:
  
          Date, Security | quantity, price
  
      The result is a MultiIndex DataFrame.
  
      Args:
          * strategy_name (str): If none, it will take the first backtest's
            strategy (self.backtest_list[0].name)
  
      """
      if strategy_name is None:
          strategy_name = self.backtest_list[0].name
  
      # extract strategy given strategy_name
      return self.backtests[strategy_name].strategy.get_transactions()
  
imports: from __future__ import division
  from copy import deepcopy
  import bt
  import ffn
  import pandas
  import numpy
  from matplotlib import pyplot
  import pyprind
  from tqdm import tqdm
label_desc: Use image node_id 9 for calling the Result obj's underlying member method code with example usage: obj.get_transactions(strategy_name) and returns: self