# Path: nowtrade/logger.py
# CRITICAL = logging.CRITICAL
# ERROR = logging.ERROR
# WARNING = logging.WARNING
# INFO = logging.INFO
# DEBUG = logging.DEBUG
# class Logger(object):
#     def __init__(self, name, log_file=configuration.LOG_FILE, \
#                  console_lvl=configuration.LOGGING_DEFAULT_CONSOLE, \
#                  file_lvl=configuration.LOGGING_DEFAULT_FILE):
#     def get_logger_level(self, name, default, out):
#     def get_console_level(self, name, default):
#     def get_file_level(self, name, default):
#     def set_file_level(self, lvl):
#     def set_console_level(self, lvl):
#     def debug(self, message):
#     def info(self, message):
#     def warning(self, message):
#     def error(self, message):
#     def critical(self, message):
#     def exception(self, message):
#     def __getstate__(self):
#     def __setstate__(self, data):


import pandas as pd
from nowtrade import logger
        dataframe attribute.
        """
        for symbol in self.symbol_list:
            self.logger.info('Loading data for %s (realtime=%s)' %(symbol, realtime))
            if self.periods:
                dataframe = self.data_connection.get_data(symbol, \
                                                          self.granularity, \
                                                          self.periods, \
                                                          realtime=realtime,
                                                          **kwargs)
            else:
                dataframe = self.data_connection.get_data(symbol, \
                                                          self.start_datetime, \
                                                          self.end_datetime,
                                                          **kwargs)
            self.data_frame = self.data_frame.combine_first(dataframe)

    def resample(self, timeframe, volume=True, adjusted_close=False, symbol=None):
        """
        Resamples data to fit another time frame.
        @type timeframe: string
        @param timeframe: The new timeframe to use; see pandas documentation.
        @type volume: boolean
        @param volume: True if volume should also be resampled.
        @type adjusted_close: boolean
        @param adjusted_close: True if Adj Close should also be resampled.
        @type symbol: Symbol
        @param symbol: The symbol to resample or None for all symbols.
        """
        assert len(self.data_frame) > 0, 'No data loaded yet'

# Path: nowtrade/logger.py
# CRITICAL = logging.CRITICAL
# ERROR = logging.ERROR
# WARNING = logging.WARNING
# INFO = logging.INFO
# DEBUG = logging.DEBUG
# class Logger(object):
#     def __init__(self, name, log_file=configuration.LOG_FILE, \
#                  console_lvl=configuration.LOGGING_DEFAULT_CONSOLE, \
#                  file_lvl=configuration.LOGGING_DEFAULT_FILE):
#     def get_logger_level(self, name, default, out):
#     def get_console_level(self, name, default):
#     def get_file_level(self, name, default):
#     def set_file_level(self, lvl):
#     def set_console_level(self, lvl):
#     def debug(self, message):
#     def info(self, message):
#     def warning(self, message):
#     def error(self, message):
#     def critical(self, message):
#     def exception(self, message):
#     def __getstate__(self):
#     def __setstate__(self, data):


# Path: nowtrade/dataset.py
import pandas as pd
from nowtrade import logger

        dataframe attribute.
        """
        for symbol in self.symbol_list:
            self.logger.info('Loading data for %s (realtime=%s)' %(symbol, realtime))
            if self.periods:
                dataframe = self.data_connection.get_data(symbol, \
                                                          self.granularity, \
                                                          self.periods, \
                                                          realtime=realtime,
                                                          **kwargs)
            else:
                dataframe = self.data_connection.get_data(symbol, \
                                                          self.start_datetime, \
                                                          self.end_datetime,
                                                          **kwargs)
            self.data_frame = self.data_frame.combine_first(dataframe)

    def resample(self, timeframe, volume=True, adjusted_close=False, symbol=None):
        """
        Resamples data to fit another time frame.
        @type timeframe: string
        @param timeframe: The new timeframe to use; see pandas documentation.
        @type volume: boolean
        @param volume: True if volume should also be resampled.
        @type adjusted_close: boolean
        @param adjusted_close: True if Adj Close should also be resampled.
        @type symbol: Symbol
        @param symbol: The symbol to resample or None for all symbols.
        """
        assert len(self.data_frame) > 0, 'No data loaded yet'

        self.logger.info('Resampling data to %s' %timeframe)