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 "<ipython-input-14-49de0aea2266>", line 2, in <module>
ss = Strategy_SMA("256265","2020-05-01","2020-05-31","5minute",50000)
File "<ipython-input-7-d0b5a6634403>", line 4, in init
super(Strategy_SMA, self).init(instrument_token,from_date, to_date, interval,amount)
File "<ipython-input-6-e0d8aa0529e3>", line 5, in init
super(TransactionBase, self).init(instrument_token,from_date, to_date, interval)
File "<ipython-input-4-15300e962ecc>", line 9, in init
self.prepare_data()
File "<ipython-input-4-15300e962ecc>", line 22, in prepare_data
self.df = self.records[['open','high','low','close']]
AttributeError: 'Strategy_SMA' object has no attribute 'records'
Hello Bhaskar,
This seems like a KiteConnect error to me. The KiteConnect developer forum would be the right place to explore this.
hi everyone I am new to algo trading, can anyone guide me how to get started algo trading using python? i.e - platform, learning tools etc
Hello Abhishek,
To get started with python you can check out our offering Python for Trading.
You might want to read this and this.