Exemple #1
0
 def post(self):
     stock = self.get_argument('stock')
     orders = order_book.trades_for_stock(stock)
     prices = self._load_price_json(orders)
     volume = self._load_volume_json(orders)
     self.finish(render_home_page(order_book.get_all_stocks(), prices, volume, stock))
Exemple #2
0
 def get(self):
     self.finish(render_home_page(order_book.get_all_stocks()))