simulate the stock trade using yahoo finance api