Hi, 

I'm new to this platform and having problem while writing my first algo.

I need to get previous market data such as SPY for the past 20 days.

How can I get this data in C# code?  

Thanks for help!

Author