Initial code for historical market data