Пример #1
0
 def source_capital_structure(self, stock):
     import core.source.capital_structure_source as source
     s = source.CapitalStructureSource()
     begin_date = '1989-01-01'
     end_date = str(date_util.get_this_month())
     for stock_code in self.__get_stock_codes(stock):
         self.LOGGER.info('''Stock Code: {stock_code}'''.format(stock_code = stock_code))
         s.source(stock_code, begin_date, end_date) 
Пример #2
0
 def __get_yearly_source_end_date(self, period):
     return str(date_util.get_this_month())       
Пример #3
0
 def __get_yearly_source_begin_date(self, period, source_first_year):
     if period == 'all':
         return source_first_year
     elif period == 'recent' or period == 'long':
         return str(date_util.get_last_year_by(date_util.get_this_month()))