def __init__(self, symbol, interval, start=None, end=None, event='TRADE'):
        """Intraday bar request for bloomberg

        Parameters
        ----------
        symbols : string
        interval : number of minutes
        start : start date
        end : end date (if None then use today)
        event : (TRADE,BID,ASK,BEST_BID,BEST_ASK)
        """
        Request.__init__(self)
        assert event in ('TRADE', 'BID', 'ASK', 'BEST_BID', 'BEST_ASK')
        assert isinstance(symbol, basestring)
        if start is None:
            start = datetime.today() - timedelta(30)
        if end is None:
            end = datetime.today()

        self.symbol = symbol
        self.interval = interval
        self.start = to_datetime(start)
        self.end = to_datetime(end)
        self.event = event
        # response related
        self.response = defaultdict(list)
def __init__ ( self , symbol , interval , start = None , end = None , event = 'TRADE' ) : Request . __init__ ( self ) assert event in ( 'TRADE' , 'BID' , 'ASK' , 'BEST_BID' , 'BEST_ASK' ) assert isinstance ( symbol , basestring ) if start is None : start = datetime . today ( ) - timedelta ( 30 ) if end is None : end = datetime . today ( ) self . symbol = symbol self . interval = interval self . start = to_datetime ( start ) self . end = to_datetime ( end ) self . event = event self . response = defaultdict ( list )
Intraday bar request for bloomberg

        Parameters
        ----------
        symbols : string
        interval : number of minutes
        start : start date
        end : end date (if None then use today)
        event : (TRADE,BID,ASK,BEST_BID,BEST_ASK)