you could get the daily close from Yahoo using their webservices, no need for IB APIs
not sure I understand what you mean for the most recent week ? by definition historical data is not real time and it's not live. Do you need to include the intra-day ticks for the most recent week in your data model ?
It seems that you will need to define more precisely your quote data scenario, and then from that scenario, articulate a data model that you can run in your script or programming language. Nothing difficult, but you will need to put more thought in your design and planning.
Butterfly, I buy/sell every Friday at close so that I always have my top picks for the following week. I use the previous 14 weeks closing price on Friday(or the last day of the trading week) for my analysis. This includes the Friday I execute the trade so I have to time my analysis so that I get as close to close as possible for the most recent week. I figured it would be easier for me to run my analysis and the order management in the same Java app in order to execute this in time and be able to buy/sell whatever I need to at close. Sorry, if I'm not making any sense it's been a long day.