def __append_to_file(self, root_dir, json, symbol):
     date = self.__format_date_from_timestamp()
     path = os.path.join(root_dir, 'BINANCE', date)
     Utils.create_dir_if_not_exist(path)
     file_path = os.path.join(path, symbol.upper())
     with open(file_path, 'a+') as file:
         file.write(str(json[0]) + '\n')
         self.logger.debug("Appended data for symbol %s at %s" %
                           (symbol, file_path))