implemented basic logic to fetch market data and find candlestick patterns