For the complete documentation index, see llms.txt. This page is also available as Markdown.

Margin Trading

Margin trades are opened on the loan token contracts and closed on the Sovryn Protocol.

In order to enter a trade, call marginTrade on the respective iToken contract. Let's say you want to trade RBTC against XUSD. You enter a BTC long position by sending either of these currencies to the iXUSD contract and a short position by sending either of them to the iRBTC contract. The process is depicted below.

How to open long or short positions.

Last updated