Not sure what to change

trying to print time / open / high / low / close data to a separate csv file to do other stuff with it

everytime I run this I only get the latest candlestick:

`
from binance.client import Client
from precisions import precision
import threading, time, csv

class writebacktest():
def init(self,api_key,api_secret,symbol):
self.client=Client(api_key,api_secret)
self.symbol=symbol
klines = self.client.get_historical_klines(“ETHUSDT”, Client.KLINE_INTERVAL_15MINUTE, “1 Nov, 2020”, “28 Nov, 2020”)
processed_klines =
for data in klines:
klines = {
data[0] / 1000, #time
data[1], #open
data[2], #high
data[3], #low
data[4] #close
}
processed_klines.append(klines)
print(processed_klines)

    with open('olddata.csv','w', encoding='utf-8',newline='') as csvfile:
        writer = csv.writer(csvfile)
        writer.writerow(klines)

class readbacktest():
with open(‘olddata.csv’, ‘r’) as csv_file:
csv_reader = csv.reader(csv_file)

    with open('prices.csv', 'w', encoding='utf-8',newline='') as new_file:
        csv_writer = csv.writer(new_file, delimiter='\t')

        for line in csv_reader:
            csv_writer.writerow(line)

if name == “main”:
api_key=""
api_secret=""
symbol=""
writebacktest(api_key,api_secret,symbol)
`

Let’s only talk about the data return to klines in this topic; Whether and how it’s converted to csv is sth you need to find out in a python forum;
From what I can see, client.get_historical_klines(“BTCUSDT”,Client.KLINE_INTERVAL_15MINUTE, “1 Nov, 2020”, “28 Nov, 2020”) could give you all the candles from Nov 1st till Nov 28th
Please be specific what data points are missing in your “klines”