getcandledata throwing error