Fixed the code to check if the OHLCV data exists for the symbol