for bar in range(80):
ss = Strategy_SMA("256265","2020-05-01","2020-05-31","5minute",50000)
ss.run_strategy()
time.sleep(288)
2020-05-17 14:54:26 Retrieving 5minute data for 256265 from date 2020-05-01 to 2020-05-31.
Error while getting Historical data 'KiteConnect' object has no attribute 'historical'
Traceback (most recent call last):
File "", line 2, in
ss = Strategy_SMA("256265","2020-05-01","2020-05-31","5minute",50000)
File "", line 4, in __init__
super(Strategy_SMA, self).__init__(instrument_token,from_date, to_date, interval,amount)
File "", line 5, in __init__
super(TransactionBase, self).__init__(instrument_token,from_date, to_date, interval)
File "", line 9, in __init__
self.prepare_data()
File "", line 22, in prepare_data
self.df = self.records[['open','high','low','close']]
AttributeError: 'Strategy_SMA' object has no attribute 'records'