code: def cancelall(ctx, market, account):
      
      market = Market(market)
      ctx.bitshares.bundle = True
      market.cancel([x["id"] for x in market.accountopenorders(account)], account=account)
      print_tx(ctx.bitshares.txbuffer.broadcast())
docs: Cancel all orders of an account in a market