binance_downloader/manager.py
def write_to_csv(self, output=None):
        """Write k-lines retrieved from Binance into a csv file

        :param output: output file path. If none, will be stored in ./downloaded
            directory with a timestamped filename based on symbol pair and interval
        :return: None
        """
        if not self.download_successful:
            log.warn("Not writing to output file since no data was received from API")
            return

        if self.kline_df is None:
            raise ValueError("Must read in data from Binance before writing to disk!")

        # Generate default file name/path if none given
        output = output or self.output_file

        with open(output, "w") as csv_file:
            # Ensure 9 decimal places  (most prices are to 8 places)

            self.kline_df.to_csv(csv_file, index=False, float_format="%.9f")
        log.notice(f"Done writing {output} for {len(self.kline_df)} lines")
Write k-lines retrieved from Binance into a csv file

        :param output: output file path. If none, will be stored in ./downloaded
            directory with a timestamped filename based on symbol pair and interval
        :return: None
        
Write k-lines retrieved from Binance into a csv file
Write k - lines retrieved from Binance into a csv file
def write_to_csv(self, output=None):
        if not self.download_successful:
            log.warn("Not writing to output file since no data was received from API")
            return
        if self.kline_df is None:
            raise ValueError("Must read in data from Binance before writing to disk!")
        output = output or self.output_file
        with open(output, "w") as csv_file:
            self.kline_df.to_csv(csv_file, index=False, float_format="%.9f")
        log.notice(f"Done writing {output} for {len(self.kline_df)} lines")
def write_to_csv ( self , output = None ) : if not self . download_successful : log . warn ( "Not writing to output file since no data was received from API" ) return if self . kline_df is None : raise ValueError ( "Must read in data from Binance before writing to disk!" ) output = output or self . output_file with open ( output , "w" ) as csv_file : self . kline_df . to_csv ( csv_file , index = False , float_format = "%.9f" ) log . notice ( f"Done writing {output} for {len(self.kline_df)} lines" )
Write k-lines retrieved from Binance into a csv file
Write k - lines retrieved from Binance into a csv file
"""Write k-lines retrieved from Binance into a csv file

        :param output: output file path. If none, will be stored in ./downloaded
            directory with a timestamped filename based on symbol pair and interval
        :return: None
        """ # Generate default file name/path if none given # Ensure 9 decimal places  (most prices are to 8 places)
None
self
output
output file path. If none, will be stored in ./downloaded
directory with a timestamped filename based on symbol pair and interval
output file path . If none will be stored in . / downloaded directory with a timestamped filename based on symbol pair and interval