> For the complete documentation index, see [llms.txt](https://xchainjs.gitbook.io/xchainjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xchainjs.gitbook.io/xchainjs/protocols/thorchain/xchain-thorchain-amm/open-and-close-loans.md).

# Open and close loans

You can find the guide to use the examples [here](/xchainjs/examples-instructions.md)

{% embed url="<https://codesandbox.io/p/devbox/github/xchainjs/xchainjs-lib/tree/master/examples/loans>" %}
