code: def orderbook(ctx, market):
      
      market = Market(market, bitshares_instance=ctx.bitshares)
      orderbook = market.orderbook()
      ta = {}
      ta["bids"] = [["quote", "sum quote", "base", "sum base", "price"]]
      cumsumquote = Amount(0, market["quote"])
      cumsumbase = Amount(0, market["base"])
      for order in orderbook["bids"]:
          cumsumbase += order["base"]
          cumsumquote += order["quote"]
          ta["bids"].append(
              [
                  str(order["quote"]),
                  str(cumsumquote),
                  str(order["base"]),
                  str(cumsumbase),
                  "{:f} {}/{}".format(
                      order["price"],
                      order["base"]["asset"]["symbol"],
                      order["quote"]["asset"]["symbol"],
                  ),
              ]
          )
  
      ta["asks"] = [["price", "base", "sum base", "quote", "sum quote"]]
      cumsumquote = Amount(0, market["quote"])
      cumsumbase = Amount(0, market["base"])
      for order in orderbook["asks"]:
          cumsumbase += order["base"]
          cumsumquote += order["quote"]
          ta["asks"].append(
              [
                  "{:f} {}/{}".format(
                      order["price"],
                      order["base"]["asset"]["symbol"],
                      order["quote"]["asset"]["symbol"],
                  ),
                  str(order["base"]),
                  str(cumsumbase),
                  str(order["quote"]),
                  str(cumsumquote),
              ]
          )
      t = [["bids", "asks"]]
      t.append([format_table(ta["bids"]), format_table(ta["asks"])])
      print_table(t)
docs: Show the orderbook of a particular market