I am getting following error while Algo trading using python for Buy or Sell a stock using a condition with Entry, Stoploss & Target.
Error: 'FyersDataSocket' object has no attribute 'history'
I am getting following error while Algo trading using python for Buy or Sell a stock using a condition with Entry, Stoploss & Target.
Error: 'FyersDataSocket' object has no attribute 'history'
Looks like you are fetching the History from Data socket , Data socket is used to fetch the live recurring data not the History , please refer the docs for the same
https://myapi.fyers.in/docsv3#tag/Data-Api/paths/~1DataApi/post