How to fetch data using c# code and get last 10 day candle low?

I want to do simple implementation pls help.
want to fetch last 10 days candle data of given stock and find out low within 10 days, then take that candles high value and return.
can anyone help me using c# code? or any sample code there?
This discussion has been closed.