Input data from Cloud Storage
Pierre Cilliers 0 last edited by
I have read the Backtrader Data Feeds documentation provided and have a question regarding importing data from Cloud Storage instead of from your local machine.
I currently have to download
.csvfiles from Cloud Storage to my local computer and add it to Backtrader as follows:
datapath = os.path.join("../../../filename.csv") data = bt.feeds.GenericCSVData(dataname=datapath, separator=";", fromdate=fromdate, todate=todate, dtformat=('%Y%m%d'), tmformat=('%H:%M:%S:%f'), timeframe=bt.TimeFrame.MicroSeconds, compression=1, date=0, time=1, open=2, high=3, low=2, close=3, volume=4, openinterest=-1 )
I was hopig if anybody could share if they have been able to import data from Cloud Storage directly into Backtrader instead of accessing to a local machine first?