Stock exchange assignment - its ugly but mostly works. Main points I'm proud of are the built-in exceptions, a checker to see if the yahoo connection will work, and the actual buy/sell function.