# Margin Trading

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.

<figure><img src="https://2753478592-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeTZFplyhxCin9IX3EC9X%2Fuploads%2FhqyaqHp5n5p1k52YaTRz%2Fmargintrading.png?alt=media&#x26;token=1f3721df-422c-4452-868a-a8b9b9ed3a42" alt=""><figcaption><p>How to open long or short positions.</p></figcaption></figure>
