Ejemplo n.º 1
0
        def fcn(security, interval, startDate, endDate, event, kwargs):
            from mDataStore.bloomberg import blp
            blp1 = blp()
            df = blp1.getIntradayHistoricData(security, interval, startDate,
                                              endDate, event, **kwargs)

            return df
Ejemplo n.º 2
0
        def fcn(securities, fields, startDate, endDate, kwargs):
            global blp1
            from mDataStore.bloomberg import blp
            # if blp1 is None:
            blp1 = blp()

            dfs = blp1.getHistoricData(securities, fields, startDate, endDate,
                                       **kwargs)

            return dfs
Ejemplo n.º 3
0
 def fcn(feeder_id,
         interval,
         startDate,
         endDate,
         md,
         event='TRADE',
         mds=None,
         **kwargs):
     from mDataStore.bloomberg import blp
     blp1 = blp()
     df = blp1.getIntradayHistoricDataBA(feeder_id,
                                         interval,
                                         startDate,
                                         endDate,
                                         md,
                                         event='TRADE',
                                         mds=None,
                                         **kwargs)
     return df
Ejemplo n.º 4
0
 def startBLP(self):
     self.evenHandler = blpEventHandler1(self)
     self.blp = blp(eventHandler=self.evenHandler)
Ejemplo n.º 5
0
        def fcn(securities, fields, overrides, kwargs):
            from mDataStore.bloomberg import blp
            blp1 = blp()
            res = blp1.getRefData(securities, fields, overrides, **kwargs)

            return res