diff -r 40424bbe109e -r 9fea5f751be4 progs/trade.scala --- a/progs/trade.scala Thu Nov 10 11:41:50 2016 +0000 +++ b/progs/trade.scala Fri Nov 11 11:17:40 2016 +0000 @@ -41,14 +41,14 @@ // some test cases -//query_comp("GOOG") +//query_company("GOOG") // some more test cases /* val indices = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "YHOO", "AMZN", "BIDU") for (name <- indices) { - val times = query_comp(name) + val times = query_company(name) println(s"Buy ${name} on ${times._1} and sell on ${times._2}") } */