Всем привет , бьюсь над ошибкой : time data '2021-01-01T00:01:00' does not match format '%Y-%m-%dT%H.%M.%S'
Не могу понять , перепроверил много раз и " вроде " всё верно :
import datetime
import backtrader as bt
if __name__ == '__main__':
cerebro = bt.Cerebro()
cerebro.addstrategy(TestStrategy)
data = bt.feeds.GenericCSVData(
dataname = 'ADA_1m_stableONE.csv',
separator = ',',
dtformat=('%Y-%m-%d'),
tmformat=('%H.%M.%S'),
datetime=0,
time=1,
high=2,
low=3,
open=4,
close=5,
volume=6,
openinterest=-1,
fromdate = datetime.datetime(2021,1,1),
todate = datetime.datetime(2022,11,10))
cerebro.adddata(data)
cerebro.broker.setcash(1000000)
print(f'Стартовый капитал: {cerebro.broker.getvalue():.2f}')
cerebro.run()
Вот кусочек CSV :
2021-01-01,00:00:00,0.18134,0.18146,0.18123,0.1813,214849.4
2021-01-01,00:01:00,0.18134,0.18146,0.18127,0.1814,573157.4
2021-01-01,00:02:00,0.1814,0.1814,0.1811,0.18113,118479.8
2021-01-01,00:03:00,0.18105,0.18105,0.18077,0.18092,378490.9
2021-01-01,00:04:00,0.18084,0.18089,0.18039,0.18052,434363.7
2021-01-01,00:05:00,0.18052,0.18059,0.18007,0.1801,794197.9
2021-01-01,00:06:00,0.1801,0.1802,0.17994,0.17997,237119.3
2021-01-01,00:07:00,0.17996,0.17998,0.17934,0.17938,540475.5
2021-01-01,00:08:00,0.1794,0.17978,0.17912,0.17978,1692622.2
2021-01-01,00:09:00,0.17977,0.17983,0.17918,0.17926,286848.9
2021-01-01,00:10:00,0.17926,0.17962,0.17926,0.17927,324698.7
2021-01-01,00:11:00,0.17927,0.17931,0.17871,0.17894,651994.9
2021-01-01,00:12:00,0.17901,0.17907,0.1786,0.17888,869984.4
Буду очень благодарен любой помощи , спасибо !