def __init__(self, date_format='timestamp', output_format='dataframe'): """ Args: date_format - Converts dates output_format - dataframe (pandas) or json """ self.date_format = validate_date_format(date_format) self.output_format = validate_output_format(output_format)
def __init__(self, symbols = None, socket_handler = None, date_format='timestamp', output_format='dataframe'): """ Args: socket_handler - Function for handling socket feed. date_format - Converts dates output_format - dataframe (pandas) or json """ self.symbols = symbols self.socket_handler = socket_handler self.date_format = validate_date_format(date_format) self.output_format = validate_output_format(output_format)
def __init__(self, symbols, date_format='timestamp', output_format='dataframe'): """ Args: symbols - a list of symbols. output_format - dataframe (pandas) or json convert_dates - Converts dates """ self.symbols = symbols self.symbols_list = ','.join(symbols) self.date_format = validate_date_format(date_format) self.output_format = validate_output_format(output_format)
def __init__(self, symbol, date_format='timestamp'): self.symbol = symbol.upper() self.date_format = validate_date_format(date_format)
def __init__(self, date_format='timestamp', output_format='dataframe'): self.output_format = validate_output_format(output_format) self.date_format = validate_date_format(date_format)