> For the complete documentation index, see [llms.txt](https://docs.belugas.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.belugas.io/aquarius.js/comptroller-methods/exit-market.md).

# Exit Market

Exits the user's address from a Belugas Protocol market.

* `market` (string) A string of the symbol of the market to exit.
* `[options]` (CallOptions) Call options and Ethers.js overrides for the transaction. A passed `gasLimit` will be used in both the `approve` (if not supressed) and `mint` transactions.
* `RETURN` (object) Returns an Ethers.js transaction object of the exitMarket transaction.

```
const belugas= new Belugas(window.ethereum);

(async function () {
  const trx = await belugas.exitMarket(Belugas.ETH);
  console.log('Ethers.js transaction object', trx);
})().catch(console.error);
```
